Thursday, 1 December 2011

Fedora 14 hanging on boot

Fedora 14 hanging on boot

Hi ^^
I'm new to Linux so bear with me
My F14 PC (the only OS installed) hangs on boot.
After a normal shut down yesterday, I opened it but the boot lasts forever, pressed F8 to see what's going on, I found it hanging on "Starting SMB services" and generating errors (I'm not able to remember what they were) so I shut it down using the power button ^^'
Same thing over and over for about 4 times, then the fifth time I decided to wait (for sooo long) and it passed the boot and the GUI started
Not a long time after, the GUI suddenly stopped functioning, not knowing what I should do I again shut it down using the power button and then restarted it, this time it hangs again and after a long wait it displayed "Unable to mount root filesystem. Sleeping forever"

I tried over and over, it's always the same thing, whether hangs on Starting SMB services or just hangs and displays the Sleeping forever message I don't know what's wrong with it, and am not not sure what to do, I have a live usb with F13 but don't know what commands to run in it

Sorry for the long message and thanks for anyone who's willing to try to help me ^^

Attachment 3942Attachment 3943Attachment 3944Attachment 3945

PS: Sorry for the bad quality of the images tried to take them while it's booting to show you the kind of messages that are displayed
Attached Images

Lost content of file - RHEL5-Harddisk was almost full

Lost content of file - RHEL5-Harddisk was almost full

Dear All,
I was editing one of my existing code. my hard disk was almost full. Once I saved and restarted my system, I found the contents of the file has been deleted. File is present in the file system; but the content became blank.

Any way to retrieve my previous content.

I'm not using any version control tools like cvs or git.

Thanks in advance for any help to retrieve content of my file.


-Shibumon

IP is not pointing to my server :(

IP is not pointing to my server :(

Hi

I have done the following

1) Changed ssh port
2) disabled root login through ssh
3) Installed few firewalls
4) block everything in iptables except 80,8080 and ssh port
5) Finally installed apache php mysql and phpmyadmin

Started the services but when hitting the ipaddress in the browser, i don't see any output

I have just added a index.html in /var/www/html/index.html

/etc/cron.daily/makewhatis.cron: Cron error each day

/etc/cron.daily/makewhatis.cron: Cron error each day

I keep continually getting this error message in my inbox for Centos 5.7 (it's exactly the same as any of the other RHEL, infact it's closer to RHEL than Fedora is even).

But it's suddenly started appearing since last weekend I think.

Quote:

Subject: Cron <root(at)mynode> run-parts /etc/cron.daily

Message content:
/etc/cron.daily/makewhatis.cron:

/usr/sbin/makewhatis: line 39: mktemp: command not found
/etc/cron.daily/rpm:

/etc/cron.daily/rpm: line 3: /bin/mktemp: No such file or directory
Does anyone have an idea how to fix this, I really don't understand what it actually does, can someone help it is just to clean up so the error doesn't appear but is it anything critial at all?

Any help is much appreciated and I look forward to any replies,
Jeremy.

Seeking Help for xbox controller operation of a servomotor.

Seeking Help for xbox controller operation of a servomotor.

Hi everyone. I am new to this forum and registered to seek help as I am learning about linux usage at an introductory level.

I am to create a kernal module in RTOS Linux (redhat 4.1.2) such that the joystick of an xbox controller operates a servomotor.

I have located this driver for the xbox controller, which operates in user space: "xboxdrv" Xbox/Xbox360 USB Gamepad Driver for Linux. I can't link to it though as I am a new user here.

The challenge here for me is essentially taking the input from the driver and applying it to a module in kernal space. I am OK with the kernal module and control of the motor, but getting the input from the driver is what I do not know how to do.

>From my research, it seems that using something like evtest-capture, to read joystick input (joystick input is to make motor move). This is where my inexperience arises. What what I understand, evtest-capture can write to an xml file in which conversion may be applied to result in a c file for input.

I am wondering if my approach to this is correct. And if this c file can be read from the kernal space, in real time, to use as input for the motor. I have read some info advising against reading files in the kernal space. However I do not understand how else I would accomplish my goal.

If my approach is incorrect, feel free to outline an ideal approach. Any help is greatly appreciated; please keep in mind my inexperience if you are to reply.

Thanks in advance,
-Will

Permission in LINUX question

Permission in LINUX question

Hi, just need a quick check on this question that i just done regarding permissions in linux.

================================================== ========
Code:

$ ls –l /Home
drwxr-x--- 2 Krystal T2a 512 Dec 25 Krsytal
drwxr-xr-x 2 Yuki T2a 512 Dec 25 Yuki
drwxr-x--- 2 Shaun T2b 512 Dec 25 Shaun
$ ls –l /Home/Krystal
-rwxr----- 1 Krystal T2a 5123 Jan 10 Lecture1.pdf
-rwx------ 1 Krystal T2a 1009 Jan 10 example1.sh
$ ls –l /Home/Yuki
-rwxr-x--- 1 Yuki T2a 5123 Jan 10 Lesson1.pdf
-r-------- 1 Yuki T2a 1009 Jan 10 Lesson2.pdf

================================================== ========

Questions:
1) Can Krystal, Yuki, Shaun read Lecture1.pdf ? Why ?
2) Can Krystal, Yuki, Shaun execute example1.sh ? Why ?
3) Can Shaun perform the command “ls /Home/Krystal ? Why ?
4) Can Yuki remove the file Lesson2.pdf ? Why ?
================================================== ========

Answers:
1) No, only Krystal and Yuki are able to read it, Shaun belongs to T2b group thus no permission is granted to him
2) No, only Krystal is able to execute it as she is granted permission. This file is granted ‘rwx’ permission to only Owner and not granted permission to ‘Group’ or ‘Others’
3) No, because Shaun belongs to a different group and no “read” permission have been given to him.
4) No, she is not entitled the permission to write or execute, she can only read the file.


There is no answer for me to refer with, so can someone help me check if my answers are correct? Thanks!

Configure a windows machine remotely from linux server.

Configure a windows machine remotely from linux server.

I have linux server and everytime a new windows machine gets commissioned in the network I am want to run some scripts ( may be powershell or something similar) to setup developer environment. Setting up the developer environment involves downloading and performing silent/unattended installation of some softwares. Are there tools in linux which would help me in configuring a windows machine from my linux desktop. I don't want to remotely log into windows machine and would ideally want to trigger it from my linux machine instead of logging directly into windows machine(design intent).