Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
putting a password on sudo disabled the little PC. I got it back but would still like sudo to ask for a password. Can anyone tell me what scripts run when xandros boots? If I can find it, perhaps I can make that specific command passwordless only.
I'll try and be more specific: Currently on the eee PC, sudo does not ask for a password, which makes the PC vulnerable to attack in that viruses and rogue software have administrative access to the machine - which is a problem with most Windows setups, and one that I'd like to avoid. HOWEVER somewhere in the boot scripts of the eee PC, a sudo command is executed. If you set sudoers to "PASSWORD" then the PC boot stops - somewhere before you get the login screen. Can anyone help to identify the script that executes a sudo command when booting?
I got some of them. I couldn't find reference to sudo in them. thanks for looking into this. It strikes me as an irresponsible way to setup a machine -very microsoft.
they won't let me post the output here - too many chars. I'll look into how to do attachments.
sudo /usr/bin/sessreg -d -l :0.0 -u /var/run/utmp user
xhost + si:localuser:root # Allow local user root only to access the diplay
if ! [ -f /home/user/.firstrundone ]; then
sudo /usr/bin/sessreg -a -l :0.0 -u /var/run/utmp user
sudo /usr/bin/firstrunwizard
if [ $? -eq 0 ]; then
touch /home/user/.firstrundone
else
sudo /bin/kill -USR2 1
fi
elif [ -f /tmp/kdesession -a ! -f /home/user/.easysession ]; then
sudo /usr/bin/sessreg -a -l :0.0 -u /var/run/utmp user
if [ ! -d /home/user/Desktop ]; then
if [ -d /home/.Desktop ]; then
mv /home/user/.Desktop /home/user/Desktop
fi
fi
[ -f /usr/bin/dispwatch ] && /usr/bin/dispwatch &
for i in /sys/block/s[dr]?/uevent ; do
sudo /bin/sh -c "echo add > $i"
done
sudo rm -f /tmp/kdesession /tmp/nologin
exec startkde
else
sudo /usr/bin/sessreg -a -l :0.0 -u /var/run/utmp user
if [ -d /home/user/Desktop ]; then
if [ -d /home/user/.Desktop.bak ]; then
rm -rf /home/user/.Desktop.bak
fi
if [ -d /home/user/.Desktop ]; then
mv /home/user/.Desktop /home/user/.Desktop.bak
fi
mv /home/user/Desktop /home/user/.Desktop
fi
if [ -f /home/user/.easysession ]; then
# we are switching from full to easy mode
for i in /sys/block/s[dr]?/uevent ; do
sudo /bin/sh -c "echo add > $i"
done
fi
/opt/xandros/bin/AsusLauncher &
icewmtray &
[ -n "$XIM_PROGRAM" ] && $XIM_PROGRAM &
powermonitor &
minimixer &
networkmonitor ath0 eth0 &
wapmonitor &
(sleep 3; /usr/bin/keyboardstatus) &
(sleep 8; /opt/xandros/bin/start_netserv) &
(sleep 16; /usr/local/bin/asusosd) &
sudo rm /tmp/nologin
[ -f /usr/bin/dispwatch ] && /usr/bin/dispwatch &
exec icewm
fi
#################
I'm not sure how to identify the service that calls it...
Last edited by biggles1963; 12-24-2010 at 06:34 AM.
Reason: left out message - added to bottom
If you are running the standard xandros EEE OS, and you have changed some configuration, and you are now having trouble un-changing it, do not forget the "Factory Restore" option:
Hold F9 during bootup.
Highlight "Restore Factory Settings"
Press enter.
Your EEE will be "as new", so if you have any important data on it, you need to back this up first.
My EEE701 is currently happily running ubuntu 10.04 (had to plug in an SD card to get enough memory though).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.