Debian Configuration :: How To Start Script After User Logs Into Desktop
Jun 22, 2015
So the question is simple what I need is to run file.sh after user logs into desktop LXDE.
Ive been trying whole day tried to put my file.sh into /etc/init.d and ever created symbolic link to /etc/rc4.d etc..
BUT after I log into desktop nothing happens?
I am coming from ubntu there it was easy just add that script into startup applications.
View 14 Replies
ADVERTISEMENT
Sep 10, 2010
I'm running ubuntu server on a home server which runs samba, ftp, and bittorrent 24/7. there is no need to be using the graphics capabilities of the system by having a desktop environment active 24/7 so to save power when i'm not using the desktop, i stop the kdm/gdm and x. This can be done easily by sudo start/stop kdm/gdm/x etc., but there are users in my home who are unprivileged on this computer but who would still like to use it from time to time and rather than having me login every time and start x for them, I would like to find an automatic solution to the problem.
I tried setuid scripts (which i found out fast didn't work), I tried compiling a small c program (again, setuid then start x) which i couldn't get to work, I also tried looking for a signal to send upstart when a specific user logs in so the appropriate environment could start but couldn't find one. I've only just started getting into upstart scripting and despite what I know.
View 4 Replies
View Related
Aug 25, 2011
I am using debian squeeze server with asterisk 1.6 installed and configured.my problem is non root users need to access the server using ssh and restart asterisk server after making changes in asterisk configuration files.As of now i am giving root username/password for this process (i know it is not at all a good idea) .now how can i create a username and configure it which can only access and modify asterisk configuration files and restart asterisk server without any other privileges.
View 1 Replies
View Related
Jan 29, 2011
Kernel: Linux 2.6.26-2-686 (i686)
Compiled: #1 SMP Thu Nov 25 01:53:57 UTC 2010
C Library: GNU C Library version 2.7 (stable)
Distribution: Debian GNU/Linux 5.0.8
Desktop Environment: GNOME 2.20
Gnome comes with Vino Remote Desktop as part of it's package. I want Vino to run at boot so that I can login remotely.I am using VNC-4.1.3 for remote viewing. However, I can only view remotely once I have logged-in locally
View 5 Replies
View Related
Jul 14, 2015
I would like to configure visudo to authorize user to start only one application with sudo on one peculiar host and forbid everything else so, after reading the man, I came up with :
Code:
Select alluser ALL = (ALL:ALL) !ALL
user host_name = /usr/bin/application
But it does not seem to work.
View 2 Replies
View Related
Aug 9, 2010
Kernel: Linux 2.6.26-2-686 (i686)
Compiled: #1 SMP Thu Nov 25 01:53:57 UTC 2010
C Library: GNU C Library version 2.7 (stable)
Distribution: Debian GNU/Linux 5.0.8
Desktop Environment: GNOME 2.20
Gnome comes with Vino Remote Desktop as part of it's package. I want Vino to run at boot so that I can login remotely. I am using VNC-4.1.3 for remote viewing. However, I can only view remotely once I have logged-in locally.
View 9 Replies
View Related
Dec 1, 2015
How to enable persistent logging with systemd? I find it really weird that all this machinery that is systemd doesn't store persistent logs, what if I'm trying to retrieve some information regarding previous boots?
For instance: I have random suspend issues, after rebooting the computer there's no trace left in the logs of what happened, and furthermore (at least in Jessie) I can no longer see a pm-suspend log.
So, at first it sounds like all you have to do is edit journald.conf setting #Storage=auto to "persistent" and create the /var/log/journal directory, but then reading here /usr/share/doc/systemd/README.Debian
Code: Select allEnabling persistent logging in journald
=======================================
To enable persistent logging, create /var/log/journal and set up proper permissions:
install -d -g systemd-journal /var/log/journal
setfacl -R -nm g:adm:rx,d:g:adm:rx /var/log/journal
and here [URL] ....
There are two main reasons why I decided to not enable persistent logging just yet ....
We did get corrupt journal files in the past where the journal then no longer worked at all [1]. With volatile you can just reboot and have a clean state again. Admittedly, the journal has seen a lot of improvements in the mean time and hopefully is more robust, so this point is no longer true.
We still install rsyslog by default. That means we get store them twice. This is something we don't want to do atm.
View 3 Replies
View Related
Mar 10, 2011
In a squeeze box, I installed awstats and it's working like a charm. Its cron job update the awstats database every 10 minutes (as it runs as root). But I would like to be able to update the statistics from the browser as well. So I setup everything as required and I gave "read" access to "others" to every apache log file. Now, a couple of questions came to my mind:
1. Am I compromising server's security giving "read" access to "others" to apache log files?
2. Instead of giving "read" access to "others", I could add www-data user to adm group (as apache log files are owned by root:adm and permissions are rw-r----). Is this more secure than giving "read" access to "others"? 3. If the option would be giving "read" access to "others" at the end, a log file would be owned by root:adm and its permissions be rw-r--r--. As apache rotates its log files, when Apache create a new log file, does it preserve the permissions (rw-r--r--) or create it with the default permissions (rw-r-----)?
View 1 Replies
View Related
Apr 22, 2016
I've enabled permanent systemd logs in Jessie, and after a while I'm seeing messages about corrupted logs when checking with journalctl --verify
Code: Select allInvalid tail monotonic timestamp 0%
File corruption detected at /var/log/journal/..........
as far as I can see, there is currently no option to delete this files from within systemd facilities, is that correct?
Should they be deleted manually, or just left alone?
Apparently I can still read all older logs regardless of such reported corruption, using the journalctl --boot -n option.
EDIT:Another thing coming to mind is that this has been happening for me not only in Jessie but in every systemd-based distro that I've tried, once permanent logging is enabled: is that some kind of systemd bug?
What would exactly mean
Code: Select allFile corruption detected at /var/log/journal/38d5e6b861134eadb37cbd64b98a66bd/user-65534@d1745ac610d2459f940a24f27abd6d47-0000000000000f14-00051b8d2dabdcac.journal:000000 (of 8388608 bytes, 0%)
in particular, the 0% of 8388608 bytes part ?
View 0 Replies
View Related
Sep 23, 2015
So, my issues since upgrading to Jessie seem to compound. When I fix one issue, two more arise. Right now, I have a full system disk. How it got so full. So I started poking around. I ran
Code: Select all find / -type f -size +50M -exec ls -lh {} ; | awk '{ print $NF ": " $5 }'
Found a few files I could delete, and did, but I also found Code: Select all/var/log/syslog.1: 33G
/var/log/messages: 33G
/var/log/user.log: 33G
What I find strange is that they're all exactly 33G each. So that accounts for the missing 99GB I deleted them, however only recovered 27Gb. Whats weird is when I type df -h I get
Code: Select allFilesystem Size Used Avail Use% Mounted on
/dev/dm-0 106G 74G 27G 74% /
udev 10M 0 10M 0% /dev
tmpfs 3.2G 9.7M 3.2G 1% /run
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/sda1 228M 27M 189M 13% /boot
/dev/sdb1 1.9T 62G 1.8T 4% /media/ntfs
tmpfs 1.6G 0 1.6G 0% /run/user/0
What are the tmpfs's and how can I reclaim that space, and what is /dev/dm-0 and why is that taking up so much space?
I have 2 LVGs vgdisplay -v
Code: Select allroot@SETV-007-WOWZA:~# vgdisplay -v
DEGRADED MODE. Incomplete RAID LVs will be processed.
Finding all volume groups
Finding volume group "WOWZASERVER"
[Code] ....
After deleting the log files, I was able to regain access to my GDM session. But I still cant find out what /dev/dm-0 is, and where all the 75 GB is being taken up.
I just noticed, however, even though I can access the drive A-OK via browser, terminal, and web services (Our wowza) when I enter gParted I get this error for sda, my primary OS drive!
Code: Select all Libparted Bug Found!
Error informing the kernel about modifications to partition /dev/sda2 -- Invalid argument. This means Linux won't know about any changes you made to /dev/sda2 until you reboot -- so you shouldn't mount it or use it in any way before rebooting
Now that I'm in gParted I see 3 partitions: [URL] ....
It reports now, that I have used ALL of my disk space.
Post Log delete, and fresh reboot, this is what Code: Select alldf -h outputs
Code:
Select all Filesystem Size Used Avail Use% Mounted on
/dev/dm-0 106G 8.7G 92G 9% /
udev 10M 0 10M 0% /dev
tmpfs 3.2G 9.8M 3.2G 1% /run
tmpfs 7.9G 80K 7.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
[Code] ....
What the heck is going on?
View 0 Replies
View Related
Mar 25, 2016
I'm getting BSOD when I'm booting my main system (debian 8 fully updated). I get a BSOD with a _ sign. URL...because I can't access to failed boots files. Besides having the files
Code: Select allfelipe@debian ~ % ls /var/log/journal
362d07f9e18b45f8aec4575c347f181d 92e8a448f7a348719da129184a7e6821
Code: Select allfelipe@debian ~ % journalctl --list-boots
0 0c51ae5b67f144059c5470dbe345d621 vie 2016-03-25 09:05:29 ART—vie 2016-03-25 09:11:58 ART
View 3 Replies
View Related
Sep 7, 2010
wants some sort of logging capability on the system. to have a log of every change to every file, although that might be a bit unwieldy. perhaps a simpler compromise would be some way of monitoring a few specific folders, and tracking all changes to them, including the user that did so. Particularly important is that it should be possible to work with access through samba, as we want to track what users on the network are creating or changing files. Is there functionality like this already built into debian or samba? is there a useful additional app to gather this information? or am I going to need to be grep'ing log files to present something useable?
View 2 Replies
View Related
Jul 14, 2010
10.04, clean installs, running Gnome or LXDE.
IF
- a logged-on user wasn't properly logged off
- the system is restarted
- the same user attempts to log in
[Code].....
This seems repeatable, and happened on 2 different PCs.
When logged into Gnome as another user and trying to sudo a backup of the borked user's home before attempting a repair, a ".gvfs" file is reported "in use" and can't be copied.
It happened to me quite a few times, due to crash or more often power failure, or my sudo-errors. I now keep a few spare virgin sudo-enabled cloned accounts just in case one dies that way.
View 3 Replies
View Related
Jan 30, 2016
I can't start a Ubuntu 14.04 Trusty LXC on Debian 8 Jessie host. I keep getting this error.
lxc-start 1454188100.777 ERROR lxc_cgfs - Could not find writable mount point for cgroup hierarchy 8 while trying to create cgroup.
lxc-start 1454188100.777 ERROR lxc_start - failed creating cgroups
lxc-start 1454188100.777 ERROR lxc_start - failed to spawn 'rosxubuntu'
lxc-start 1454188100.777 ERROR lxc_start_ui - The container failed to start.
lxc-start 1454188100.777 ERROR lxc_start_ui - Additional information can be obtained by setting the --logfile and --logpriority options.
View 8 Replies
View Related
Sep 10, 2010
I have maked a new kernel (version is 2.6.24.7) in debian system which kernel is 2.6.26, and then when i start the new kernel which is 2.6.24.7, it tells me that:
View 1 Replies
View Related
Nov 26, 2015
I just installed Debian Jessie (3.16.0-4-amd64) on a desktop box I intend to use as a server in our home office. During installation I included the web server and SSH server options. I have a user account, 'mitchell' set up in addition to root. Everything is working great except that I am unable to log in via SSH from other machines, such as a Windows desktop also on the office LAN (using PuTTY). From the PuTTY terminal it looks like the user name is accepted because the password is requested, but after entering the password it says "Access denied".
Back on the Debian box in I see:
Code: Select allNov 26 14:12:02 DebianDevP6TSE sshd[2278]: Invalid user mitchell from 192.168.1.96
Nov 26 14:12:02 DebianDevP6TSE sshd[2278]: input_userauth_request: invalid user mitchell [preauth]
Nov 26 14:12:07 DebianDevP6TSE sshd[2278]: pam_unix(sshd:auth): check pass; user unknown
Nov 26 14:12:07 DebianDevP6TSE sshd[2278]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=rmbiserv.attlocal.net
Nov 26 14:12:10 DebianDevP6TSE sshd[2278]: Failed password for invalid user mitchell from 192.168.1.96 port 60010 ssh2
So I am guessing I need to set up either the SSHD server, or maybe something in PAM, to authorized users for SSH access?
As a note, "mitchell" is the user name I use to log on to Debian, and I am entering the same user name and password when trying to log in via SSH.
If I try to log in via SSH as "root" I get the following in the log:
Code: Select allNov 26 14:17:01 DebianDevP6TSE CRON[2329]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 26 14:17:02 DebianDevP6TSE CRON[2329]: pam_unix(cron:session): session closed for user root
Nov 26 14:29:59 DebianDevP6TSE sshd[2383]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=rmbiserv.attlocal.net user=root
Nov 26 14:30:01 DebianDevP6TSE sshd[2383]: Failed password for root from 192.168.1.96 port 60132 ssh2
View 6 Replies
View Related
Mar 29, 2016
I recently installed debian 8 stretch with xfce. Since the first time I boot, I have problem starting my X session: from lightdm I always attemped 2 or 3 times before it login (it returned me on lightdm prompt after a short splash screen).
Now it stopped working: the only way I can start xsession is running startx as root. When I try as user it starts the "splash" and return me to the tty with this error message:
Code: Select allServer terminated with error (1). Closing log file(EE)
This is my ~/.local/share/xorg/Xorg.0.log
Code: Select all[ 27.703]
X.Org X Server 1.18.2
Release Date: 2016-03-11
[ 27.704] X Protocol Version 11, Revision 0
[ 27.704] Build Operating System: Linux 3.16.0-4-amd64 i686 Debian
[ 27.704] Current Operating System: Linux debian 4.3.0-1-686-pae #1 SMP Debian 4.3.5-1 (2016-02-06) i686
[Code] .....
And this is my /etc/X11//Xsession
Code: Select all#!/bin/sh
#
# /etc/X11/Xsession
#
# global Xsession file -- used by display managers and xinit (startx)
# $Id: Xsession 967 2005-12-27 07:20:55Z dnusinow $
[Code] ....
and this the .xsession-errors:
Code: Select allXsession: X session started for lucatastrophe at Tue Mar 29 10:21:09 CEST 2016
localuser:lucatastrophe being added to access control list
openConnection: connect: No such file or directory
cannot connect to brltty at :0
dbus-update-activation-environment: setting MAIL=/var/mail/lucatastrophe
[Code] ...
I try to reconfigure Xorg but the Xorg -configure command result in another segmentation fault.
I think that the problem could be related with old configuration (when I install this version of debian I maintain the /home partition and my previous OS was debian 7 with xfce).
View 7 Replies
View Related
Jul 18, 2015
I am struggling to find out how to start the connection to my VPN on boot?
View 1 Replies
View Related
Sep 28, 2015
I have a "time-server". It's sending time to different devices through different ports/protocols. The problem is that it has no operator and that makes some extra difficulties.
Now when i try to start it using terminal Code: Select allsudo ./myprogram works fine and
Code: Select all./myprogram doesn't work.
It is so because without sudo i have no access to ports. As a result If i add my program to System->Preferences->Startup Applications it has the same problem. So i need to start it as root, auto-start, right after auto-login to system but without entering password cause nobody will do it.
Also I need to start ntpd but it also asks password sometimes I've tried googles but it offer a few ways with entering password that isn't suitable for me or writing some scripts/changing system files but with no example I'm afraid to break it all. So is there a way to start Myprogram and NTPD as root with no password entering?
My system is Debian 6.0.10 Squeeze, Kernel 2.6.32-5-686
View 12 Replies
View Related
Mar 26, 2010
im sure that my graphic card is good but after i installed the compiz manager ....the system failed to start the xserver this is the xserver output :
x.org x server 1.7.5
release date : 2010-02-16
x protocol version 11, revision 0
[code]....
View 5 Replies
View Related
Apr 27, 2010
I have installed GNU/Linux Debian on my computer (desktop) and i have ubuntu installed on my laptop. Now I want to start the ssh connection between both the computers. I want to make Debian as server and Ubuntu as client. Please can you guide me with this (installation and setup). Also the key values of the configuration file (ssh_config & sshd_config) are expected.
View 10 Replies
View Related
Apr 29, 2010
I have a bash script that starts gammu, which I would like to start at bootup. But how do I accomplish this the best way ?
One way is to do it like this
Copy the file to /etc/init.d/
chmod +x the file
update-rc.d scriptfile start 20 2 3 4 5 . stop 20 0 1 6 .
But is there a better way ?
View 1 Replies
View Related
May 29, 2011
my ENTIRE hard drive now has user AND group permissions root. I can't start X and are having various permissions issues. although ive been using linux for a long time.
long story long, I did a debian netinst to my netbooks SSD. got everything EXACTLY as I wanted it, was very happy with my first go at debian but of course being a linux dork im always willing to tweak. I installed onto btrfs which I recently learned supports compression which not only saved precious SSD space (only 8GBs) but according to some benchmarks also improved performance. this was a boot option and would only start compressing new files. this, of course, could not be good enough. so I formatted my SD card btrfs, mounted it with compress option + my SSD defaults and copied over all files that weren't a mount (i.e. proc, dev, sys,...) however I forgot to copy permissions. so every file was copied with root:root ownership and I didn't realize this when booting to the SD card to verify things were working as I assumed ( never do this ) that getting to a login terminal was enough. So now I need to fix all permissions and I would really prefer it be without a clean install.
A netinst can take a dec amount of time and I had a lot of tweaking to do since I only used Xorg + i3 tiling wm. there has to be a way to fix this...I started trying to reinstall all the packages but kept running into issued where aptitude wasn't able to reinstall things like bash or perl-base, presumably bc they were in use or had incorrect permissions set
View 10 Replies
View Related
Mar 24, 2010
I don't exactly know what happened but for some reason only the main user has access now to the networkmanager and is able to connect to internet. If I switch to another user, the networkmanager reports no connectivity and the PCMCIA card dies. Does anyone know what to do? It seems like an access feature, related to permissions or something.
I checked but the user is added to the netdev group...
View 1 Replies
View Related
Aug 24, 2010
I'm running sid, reasonably updated. I decided to add a samba share. I installed samba (2:3.4.8~dfsg-2), samba-tools, smbclient, smbfs, & samba-client. I did a "/etc/init.d/samba start" and even rebooted. But when I try to add a samba password for my regular user I can't.
# smbpasswd -a praxis
bash: smbpasswd: command not found
I did a "locate smbpasswd" but I'm only seeing:
[code]...
View 3 Replies
View Related
Oct 23, 2010
It looks like my web/ftp server has been hacked but I'm not sure how. I logged in tonight and found I had new mail. I read it and found some e-mails that had failed to send because I don't have mail setup (luckily). The e-mails were trying to send my user name and password to the e-mail address lostsoul2k@ymail.comI've no idea where to start, I use SSH, FTP now and then and it hosts a Wordpress site. The FTP users do not have access via SSH, only my user ID. However, the e-mails also contained another user ID that only has FTP access to the server.I've looked through the logs for rkhunter but it doesn't look like it found anything.
View 11 Replies
View Related
Oct 30, 2010
This is a perennial problem with Linux. I am just not comfortable moving a lot of casual files around as root. How can I have user access to a USB stick? I've done my Google searches and tried several methods, some of which work temporarily but not permanently. At the moment, I have this line in my /etc/fstab: /dev/sdd /media/usb_flash ntfs noauto,users,rw,umask=0 0 0
As with other methods, this worked last week but not now.
All I want to do is insert a USB stick, transfer some files and remove the stick. I want to do this as a user. This should be simple. What is the trick?
View 5 Replies
View Related
Apr 19, 2010
I have just installed Debian Sqeeze with xfce4 desktop and when i boot, i just get a terminal prompt ... and so i have to manually type startxfce to start the desktop ...
How do i do this automatically at boot?
View 2 Replies
View Related
Jun 18, 2015
Since upgrading from Wheezy to Jessie I have not been able to start the MySQL-server. When I do a "systemctl start mysql" I get the following answer on the console:
Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details.
Entering 'systemctl status mysql.service' the answer is:
● mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql)
Active: failed (Result: exit-code) since Don 2015-06-18 18:35:41 CEST; 4min 1s ago
Process: 11272 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
syslog and hostname.err don't show any pertinent messages.
View 4 Replies
View Related
Aug 13, 2015
I have a debian 8.1.1 server running owncloud and a proxy server at home. I have everything working fine, with one exception. The proxy server won't start on boot. If I ssh into the server, then run "sockd -D" as root, it starts up and runs just fine. Any guides I find refer to the init.d script method that worked in Wheezy, but that isn't working. I think it has to do with Jessie switching to systemd? I had used someone elses script in init.d, and ran update-rc.d, but it still doesn't start.
With Jessie, how can I make "sockd -D" execute on system startup?
View 0 Replies
View Related