Slackware :: Starting X Programs As A Different User?
Apr 23, 2010Is there a way to start X programs as root from a root login shell?
I generally get an error about being unable to open the display.
Is there a way to start X programs as root from a root login shell?
I generally get an error about being unable to open the display.
How would I make sure cron is running every time my server is turned on? I want to make cron jobs, but I need to know that it is running when the server boots. Also, I used a program at some point that was terminal based and it showed be what programs ran when the server booted up. It allowed me to check a box and select which programs I could run at boot. If someone could tell me this program,
View 2 Replies View RelatedI want to write a script that launches a set of programs I need for such or such particular task. For example, I wrote this one:
coding:
utf-8
nautilus /mnt/scratch/legeron/levesqu2
filezilla
But gnome-terminal will not start until I close filezilla, and gedit until I close gnome-terminal. How can I get the whole set to start up?
Running Ubuntu Server 9.10.I have a couple of programs that I would like to start at boot, they will both run forever. I have created a cron job with @reboot and that will start a program, but if I have multiple programs in there it waits for the first to finish before starting the next.
View 2 Replies View RelatedI'm booting ubuntu from my android phone via USB and it works great, the thing is anything i install or do while using ubuntu isnt saved the next time i boot from the usb unless its saved in my phones storage. I want to be able to keep booting ubuntu the same way but keep the programs i install there for the next time instead ohttp://mac.bigresource.com/add/add.phpf starting from scratch everytime.
View 3 Replies View RelatedHow do i re size my Slackware partition without deleting it and starting over, I'm new to Slackware and the work i have done i don't feel like doing again.I have set my swap and my actual HDD partition for Slackware to +8048M, I am correct in saying that fdisk can only delete and start fresh, I was a Ubuntu/Fedora user if i could get something like Gparted up that would be great but i don't mind some reading and learning some more terminal based stuff.Planning on working out the kinks and dealing with the learning curve, Love to learn.
View 12 Replies View RelatedI've set up a second user for myself on my laptop.
My user on the laptop is 'tiger'
Let's call the second user 'jrdobbs'
I would like to log on to gmail/facebook/etc using the jrdobbs, but I don't want to switch users via X... I just want a second instance of firefox open, which stores all of its login information under /home/jrdobbs.
My naive attempt looked like this:
Code:
su -l -c "firefox" jrdobbs
Here was my thinking:
start firefox under 'su jrdobbs' ... firefox should store its files under the current user's $HOME/.mozilla
[Code].....
Can't seem to open certain things. For example Synaptic Package manger. It just shows "starting" etc and then nothing. Same thing with partition edd root terminal.Terminal runs fine (and i can su root from there) as do other things such as firefox,em monitor,update manager add/remove applications. apt-get still works fine. Just want to mention i have 500 megs of ram. Any ideas? Are there logs dumped somewhere for this kind of thing? Synaptic package manager still runs using dpkg from the terminal.
View 5 Replies View RelatedSo right now VNC is starting a session using :1. When I connect to that session, the terminal is logged in as root. I'd like for the terminal to be logged in as a different user as some of my end users are going to be using this and don't require such privileges. I found that I can "su" to a different user and start a new VNC daemon on :2 and when I connect to that session, the terminal is logged in as that user. What I want to do is get that to run at boot-up.
View 4 Replies View RelatedI am using a broadband internet connection. Currently I am using pon and poff commands to start and stop the internet connection respectively. But for these commands to execute I should switch to the root user. I want even a normal user to be able to start or stop the connection. How can I do this?
View 1 Replies View RelatedWe have installed apache 2.2.15 webserver on A rhel 5 Linux 64 box using the user wwwadm group www
We can start the webserver using root and it works fine but we dont have root access forever so we want the wwwadm user to have all the rights and we can start/stop/restart the Apache server using this wwwadm user.
I have installed VirtualBox as per the instructions on this site, and the kernel module compiled without problem, however when I start it, it causes the user to logout!
I am using the nvidia module from the ATrpms repo if that has any bearing on the problem.
Has anyone else seen this issue?
Details:
CentOS 5.5 x86_64 running on a Dell Studio XPS 435MT with i7 920 and 6GB of RAM
VirtualBox 4.0.2 from virtualbox repo.
nvidia driver 260.
How do check the programs that the actual user of the computer installed. I do not care at all about the default programs that came with your distro of Linux, I only want the user installed programs.
View 3 Replies View RelatedI want to classify my users, based on what kind of programs/binaries they can use.Users of group Bronze, can use programs
A, B and C
While users of group Silver can use programs of Bronze, in addition
D and E
While users of group Gold can use programs of Silver, in addition
F, G, H
Any Idea on how to do this?I am curious on how sdf.lonestar.org is doing this...
I have written a simple perl program to add a command to iptables. Here is my code :
Code:
#! /usr/bin/perl
print "Content-type: text/html
";
system("iptables -A FORWARD -s 192.168.0.2 -j DROP");
I put this file in cgi-bin folder of Apache server. Here is my problem : when I run this file with shell as root user it makes change to iptables, but when I use my browser to run this file, it doesn't make any change. I'm sure this is because Apache doesn't have permission to manipulate iptables. How can I start Apache as a user with root privileges ?
cusexmp, the example of CUSE program, works. Is there real programs that makes use of it? For example, a thing that just mirrors other character device or thing that allows networked character devices.
View 1 Replies View RelatedI ran installpkg on seamonkey 2.0.4, on Slackware 13.0, and it appeared to install OK. I can run /usr/bin/seamonkey -version and I get the 2.0.4 version number. However, when I run it without arguments, no windows get opened, and there are no errors that I have located (eg messages, syslog). This is probably something real obvious, but I'm drawing a blank. BTW, firefox runs OK.
View 12 Replies View RelatedI've apparently messed up something I guess with the rc.M file. When I boot the system it goes to
Code: Starting HAL Daemon: /usr/sbin/hald --daemon=yes
and it freezes.
I have a 16GB flash drive with grub2 installed on it so I can boot Linux iso's in place of burning 200 CD's. I looked at the isolinux.cfg file and came up with this:
Code:
menuentry "Slackware 13.1 64bit" {
linux /boot/slackware/13.1/64-bit/bzImage initrd=/boot/slackware/13.1/64-bit/initrd.img load_ramdisk=1 prompt_ramdisk=0 rw SLACK_KERNEL=huge.s root=/dev/ram0
}
However the kernel panics because it cannot mount the root file system. It gives me the options of using my partitions. What should I put for the root parameter?
I'm having trouble starting non-kde window managers. From the start-up command line, I get an error message about the XServer when typing "fluxbox" in as a command. However, when I put fluxbox in as a command in konsole, it gives an error message (which makes sense because I was using kde). I also can't start xfce as it is not a recognized command.
View 8 Replies View RelatedHow do you open a program, in this instance "Zenmap", from the desktop in a user account when it requires root privileges? Is there a way to be prompted for the password, the same way, for instance, you're prompted when mounting a new file system or making a change to the system? I tried entering 'sudo /usr/bin/zenmap' when creating the shortcut, however that didn't work.
View 3 Replies View RelatedMy Slackware64 13.1 system is running off a notebook that does not leave the desk often so I stay connected via a ethernet cable. Recently I set up the wireless configuration for my home network and while I would like to have it so that it automatically goes to the wireless interface when the wired is down, I do not think that is possible without wicd or some other network manager. Anyway, whenever I start up Slackware both the wired and wireless interfaces activate and acquire their own IP addresses. What I would like is for the wireless configuration to remain dormant so that all I would have to do is issue "ifconfig wlan0 up" to turn on the wireless interface/connection. Is this possible? As it stands I have to manually issue the "ifconfig wlan0 down" to turn it off once the system boots up and I log in.
View 4 Replies View RelatedKDE 3.5.4Kernel 2.6.17.13Slack 11A few weeks ago, my system locked up and I had to do a hard reboot (hold down power button). When I powered back on, the programs (KDE System Guard, Konsole window, MythFrontEnd) that were running at the time of the lockup appeared again. I exited System Guard and the Konsole window and then restarted normally. However, they keep appearing in the same spot when I log in to KDE. I looked through some logs in /var/log, but I don't see anything I haven't seen before.I deleted the /home/myuser/.kde/cache-hostname folder and its contents while in single-user mode, but that had no impact
View 4 Replies View RelatedEverytime my system boots, it displays 4 tux penguins above the text... however; on one of my older systems, it only displays 1 tux penguin... and on another it displays 2...So each time I boot, I have curiosity about this trivial issue, and now I can't take it anymore; I need to find out: what controls the number of tuxes when booting?
View 3 Replies View RelatedI need to find the list of file being tagged by user jack starting from a given date.Eg:Tag Name:lcc_dev_p1User: jackDate: >= 2011-03-02can some done tell me what is the cvs command for this.Should the below command give the correct outputcvs log -R -S -N -rlcc_dev_p1 -d">=2011-03-13" -wjack > /tmp/output.txt
View 1 Replies View RelatedA few days ago I tried out Fedora 14, but it didn't really live long. However, I have now Slackware on my netbook again. While I was trying Fedora I installed Clementine and I had to install an extra mp3 lib (I installed Fluendo MP3) to enable mp3 support. On my main machine I have also installed Slackware and Clementine and I can play mp3, so I ponder where's Slackware's mp3 lib? I egrep'ed /var/log/packages for "mp3" but I couldn't find any appropriate. Does Slackware use a shared mp3 lib or is the mp3 support in all the programs?
View 2 Replies View RelatedI recently installed slackware 13 on my system and then i went to slackbuilds and installed wine now when i try to install software through wine it will run the installer for the software fine and say the programs are installed but when I go to run the programs nothing happens
View 11 Replies View RelatedI installed Slackware 13 in VirtualBox 3.1 (seehere)When I'm logged in as a normal user, I get a mesage that Intel *** (sound device) doesn't work anymore and I hear no sound.But it works very fine when I'm logged in as root.
View 4 Replies View RelatedI'm trying to configure gpsd 2.96 to start automatically from udev rule on a Slack 13.37 box.1. I've compiled and installed gpsd from sources and made sure it starts manually.2. I've copied the /lib/udev/gpsd.hotplug and /lib/udev/gpsd.hotplug.wrapper scripts in their places from the source tree and made them executable.3. I've copied the gpsd.rules file from sources into /etc/udev/rules.d4. I renamed it 99-persistent-gpsd.rules to run late in the bootup process.5. I've copied the /etc/default/gpsd file from sources and made sure it has the right settings inside.
Now, for the results. If I plug the gps usb dongle in while the system runs, it starts gpsd if it is not started, and it connects to it just as it should. But if I start the system with the dongle in, gpsd doesn't get started during boot. I can't find any relevant message in /var/log/syslog or /var/log/messages for boot time. There is stuff there from when I plug the dongle in while the system is running though. It's like udev ignores the rules for it at boot time.Is there something in the Slackware boot scripts that would prevent running those scriptssd.hotplug.wrapper which in turn runs /lib/udev/gpsd.hotplug which is a Python script)?Here is the contents of 99-persistent-gpsd.rules (ignore the comments referring to Debian, it was meant for a Debian box). My usb gps adapter is the first one - the Prolific chipset one:
Code:
# udev rules for gpsd
# $Id: gpsd.rules 5861 2009-08-03 13:41:01Z bzed $
[code]....
How to stop starting daemons at boot time? For example:rc.bluetooth
View 3 Replies View Related