Ubuntu :: Determine The Time Of Last Reboot And Open All Sessions?

Sep 1, 2011

Is there a way to determine the time of last reboot and open all sessions and/or files that were open with a BASH script?

Oh also on this topic, does anyone know where a good repository of BASH, PERL and other Linux System Scripts are?

View 3 Replies


ADVERTISEMENT

OpenSUSE :: Can Only Start Firefox Once Have To Reboot To Get It Open A 2nd Time

Aug 28, 2011

I will open firefox then scroll to file-quit firefox, firefox closes fine but when i want to open firefox again it wont, i have to restrate opensuse 11.4 linux 2.6.37.6-0.7 kde 4.6.0.0.

View 3 Replies View Related

Ubuntu :: Save The Currenty Xterm Sessions In The Workspace After Reboot?

Jun 2, 2010

Anyone knows how to save the currently workspace settings on my desktop when logout/reboot/shutdown the old setting will resume? Currently, i have configured the multiple xterm sessions and placed them in each corner of workspace on dual monitors, but after the system rebooted the xterm sessions are resumed, but they display on one monitor instead of two monitor and overlapped each other. I followed to save the desktop setting at in the "startup Applications preferencesemember currently runnign application". This would not work as i wish. Littlery, i want each xterm session reopen and place in each corner of workspace

View 2 Replies View Related

CentOS 5 :: Xinetd Xvnc 'Teminal' Sessions - Only One Allowed At A Time?

Mar 2, 2009

I'm setting up my CentOS server and I'm having issue with the VNC server. I've set up xinetd services for connections all of which work individually bringing me to a login window. But only one will work at a time. If I kill the process or if I click the disconnect button I can make a new one but as they are terminal sessions (using wait) I wanted to be able to leave one logged in and have the option of another connection if I wanted to log on a different user.

Can someone help with the setting which would be to allow more than one connection? I know if you setup permanent session paths in vncserver this should work but (and I'm sure this has worked for me in the past) the xinetd method is supposed to open up sessions as required. I am working from a write-up for doing this in Ubuntu and aside from odd path differences the only noticeable change is the guide uses vnc4server rather than vncserver that comes pre-installed on CentOS. Should that matter?

View 2 Replies View Related

Ubuntu :: Determine The Last File Access Time?

Jan 5, 2011

Is there a bash command that I can use to determine the last file access time? I know about -atime option for the find command, but I want to doublecheck to make sure that I'm doing this correctly (the output when I use find -atime isn't what I expect).

View 4 Replies View Related

Software :: Where Are Server Bogus Sessions Open

Jan 27, 2011

I've used NoMachine's NX software for some time, but on one of my machines it simply will not work. At first it did, but now when I log in it authenticates, starts downloading a session, but then drops dead. There is no hint of what the problem may be except in /var/log/messages on the server machine:

User 'bill' from '192.168.1.1' logged out. 'NXLogin::reset'

Notice that it's a login reset, after authentication went fine. Researching this I find the problem is often caused by a missing fixed font, which is remedied with an: # apt-get install xfonts-base --reinstall but that doesn't help. I have completely deinstalled and purged the three Nomachine packages on the server, deleting all associated directories, and reinstalled them, but no help. From my client machine I can log into a NX session just fine, so I'm sure it's not the client machine. The Linux version of this software has a limit of 2 sessions, and I suspect the server may have some bogus sessions open, but where? I've done a purge and deleted /usr/NX and /home/bill/.nx so where else could this be?

View 14 Replies View Related

Programming :: Bash Script To Test For Open FTP Sessions From Specific Clients?

Apr 8, 2009

I look after a server which accepts automatic overnight PASV FTP uploads from remote clients. When the uploads are complete, my Bash script copies the files to another location. The problem is, my script needs to be a bit smarter when it comes to detecting active FTP sessions.

I was using:

Code:

netstat -n | grep ":21 " | grep ESTABLISHED

to test if there were active sessions, but came unstuck when a local user left an unrelated FTP session active. The result - my script hung around all night thinking there was an active upload from a remote client. My server is behind a firewall, so remote clients all show an internal (NAT) address,so I can't differentiate by source IP address.I can't install LSOF or FUSER for security reasons. Is there a way I can test for active FTP sessions from specific users? I am running Red Hat Enterprise Linux Server release 5.2 (Tikanga).

View 7 Replies View Related

Ubuntu :: Determine Which Process Has /dev/ttyUSB0 Port Open?

Jan 16, 2011

I'm developing a serial port application under Lazarus using the SunaSer code library.

The application reports an error indicating that "the Port is opened by another process".

What command can I execute in a Terminal session to determine what process has the USB-serial port open?

View 4 Replies View Related

General :: How To Determine What Process Has A File Open

Jan 19, 2010

I'd like to determine what process has ownership of a lock-file. The lock-files are simply a file with a specific name that has been created.So, how can I determine what process has a particular file open in Linux? Preferably a one-liner type or a particular Linux tool solution would be optimal.

View 3 Replies View Related

Fedora :: XDMCP Fatel Error "Session Declined Maximum Number Of Open Sessions"

Mar 20, 2010

I am using Fedora 12 and i have enable XDMCP i have boot client with dhcp all is going well but when remote user logout than remote client display XDMCP: fatal error: Session declined Maximum number of open sessions. and after that i have reboot Fedora 12 server than it will work but after logout it will again create same problem.

View 1 Replies View Related

Ubuntu :: Every Time I Try To Reboot System It Hangs

Mar 21, 2010

I am using Ubuntu 9.10. Every time I try to reboot my system it hangs. Shutdowns work properly. I've done multiple re-installations. Nothing I've tried fixes the problem. Does anyone have any suggestions?

View 4 Replies View Related

Ubuntu Servers :: Lose Network After Reboot - Every Time

Aug 17, 2010

Whenever I reboot my server, it looses all network connectivity. It can't see the LAN nor the internet. I have to issue the following:

Code:
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth1 up

This will get the server talking to the LAN, but still not to the internet. To get that I have to do:

Code:
route add default gw 192.168.0.1

Then I'm up and running.

But why?

Granted I only have to reboot now and then (after a power failure, or, like last night where the server was actually heating the house too much on a hot August day) but why is this happening? It is like these settings are temporary and are lost on shutdown.

View 4 Replies View Related

Ubuntu Servers :: Reboot Required Line At Logon Time?

Jan 30, 2011

When I log onto my 10.04 server via ssh, there is the /etc/motd displayed. This motd is made up each time by the files in /etc/update/motd.d/. There is this one file : update-motd-reboot-required The content is exec /usr/lib/update-notifier/update-mot-reboot-required and the content of this one is : if the file /var/run/reboot-required exists, print it.

But who is making this file and why ?we know who it is: it's pam_motd.. but why would I reboot ??!?

editt2 : nvmd [URL]

View 1 Replies View Related

Debian :: Pavucontrol Resets Every Time During Reboot

May 16, 2015

if I have to reset my system for any reason or even logging out my pavucontrol resets to my built in audio instead of sticking to my HDMI like I want it to.I can manually configure a file I will, I just need to know where to start.I will provide hardware info when asked for it, just need a feeler here.I am running Debian Jessie KDE 64bit

View 1 Replies View Related

OpenSUSE :: System Time Is Always Wrong After Reboot

Jan 6, 2011

Every time I reboot my computer the system time always comes up exactly 10 hours behind where it should be. So if I reboot it at 16:00 it comes up as 06:00.

This has only been happening since I got back from a trip to Australia, where I naturally changed the computer's timezone to match the local one. I'm now back in Central European Time which is 10 hours behind Australia's. This is on opensuse 11.3.

I've used the YAST date and time tool to set the timezone correctly, and /etc/localtime is set correctly:

Code:
:~> sha1sum /etc/localtime
b065fae6bda0f0642ca6a52b665768e34a99d213 /etc/localtime
:~> sha1sum /usr/share/zoneinfo/Europe/Berlin
b065fae6bda0f0642ca6a52b665768e34a99d213 /usr/share/zoneinfo/Europe/Berlin

[Code].....

View 9 Replies View Related

General :: Loose An Hour Every Time Reboot PC?

Aug 8, 2010

I was wondering if any one came across that issue before. Everytime I reboot my PC something (I assume GNOME) reset my system clock to an hour behind what is was the last time. So if a reboot twice in a row that'll be two hours behind and so on. It used to work fine until I had to change my system time backward temporally to overcome and issue with GPG. Since I put it back I get that phenomena. It's like it's adjusting it for the Day light saving everytime a boot. Problem is Japan does not have any day light saving. I run OpenSuse 11.2 with Gnome 2.28.2 as my interface. I'm currently located in Japan GMT+9 not DST. /etc/localtime -> /usr/share/zoneinfo/Asia/Tokyo

I suspect a bug in Gnome or Yast. It's not user specific because the time is already altered even before I log it.

View 13 Replies View Related

OpenSUSE :: System Time Is Always Wrong After Reboot?

Jan 2, 2011

Every time I reboot my computer the system time always comes up exactly 10 hours behind where it should be. So if I reboot it at 16:00 it comes up as 06:00.

This has only been happening since I got back from a trip to Australia, where I naturally changed the computer's timezone to match the local one. I'm now back in Central European Time which is 10 hours behind Australia's. This is on opensuse 11.3.

I've used the YAST date and time tool to set the timezone correctly, and /etc/localtime is set correctly:

Code:
:~> sha1sum /etc/localtime
b065fae6bda0f0642ca6a52b665768e34a99d213 /etc/localtime
:~> sha1sum /usr/share/zoneinfo/Europe/Berlin
b065fae6bda0f0642ca6a52b665768e34a99d213 /usr/share/zoneinfo/Europe/Berlin

[Code]....

View 1 Replies View Related

CentOS 5 :: 5.2 Hyper-V Server Time Changes On Reboot?

Jul 15, 2009

I'm running a CentOS 5.2 vm on a W2K8 hyper-v core server. The problem I have is that when I reboot, the system time always resets itself to 6:00 am in the morning. I tried the /sbin/hwclock --systohc command but it hasn't taken hold.

View 1 Replies View Related

Fedora :: Save Setting In Alsamixer - Get 6ch Every Time After Reboot?

Jul 21, 2010

I change the audio channels to 6 in alsamixer by choosing my sound card and change the channels to '6ch'. But this setting is not preserved. I see that after a reboot the channels are again going back to 2ch. I have to manually change everytime to 6ch after each reboot. Is there a way to save the setting in alsamixer so that I will get 6ch everytime after reboot? I am not sure I have explained my problem in a way so that you can understand.

View 2 Replies View Related

Fedora :: Reset The Hardware Clock Each Time When Reboot Into The Other O/S

Sep 1, 2010

Dual boot system. Boot Linux Fedora 13 and the hardware clock is set to GMT. Boot Windows 7, time is wrong, as it expects the hardware clock to be set to the local time. reset the hardware clock each time I reboot in to the other O/S.

View 5 Replies View Related

Fedora :: Date And Time Reset On Reboot After F15 Upgrade

May 26, 2011

I upgraded from fedora 14 to fedora 15 yesterday. I live in India (IST) which is GMT +05:30. Every time I boot, my system clock increases its time by 5 and a half hours. For example, system clock on my machine is now Wednesday May 26,2011 22:44. If I were to reboot now, the time I would get is Thursday May 27, 2011 04:14. How do I correct this?

View 14 Replies View Related

Fedora :: Time Jumps Backwards On Reboot / Stop It?

May 30, 2011

Just installed F15 using preupgrade (from F14) and now, every time I reboot, time jumps backwards 4 hours. If I reboot twice in a row without correcting the time, time will be off by 8 hours. Time zone is set correctly (Eastern Time). "Synchronize date and time over the network" is unchecked.

Since the difference between GMT and Eastern time is 4 hours, there appears to be some confusion over that but I can't find anything in the "Date & Time" app relative to that to try to play with to see if I can correct this. II do remember a similar issue many releases ago but I can't remember how it was dealt with.

Any ideas on how to diagnose and fix this?

View 8 Replies View Related

Ubuntu :: CPU Frequency Scaling Monitor Won't Stay At 800mhz After Reboot Or A Certain Period Of Time

Oct 26, 2010

The CPU frequency scaling monitor won't stay at 800mhz after reboot or a certain period of time. My goal is to always have my dual core CPU locked at 800mhz to have it run cooler. I'm running Ubuntu 10.10 on my toshiba u300 laptop.

View 4 Replies View Related

Hardware :: Hwclock (BIOS): Time Set Wrong During Shutdown And Also Reboot?

Nov 15, 2010

System time was drifting ahead increasingly for several days time in the end. This is what I did with the clock about 6 hours "in the future":

Quote:

sntp -P no -r pool.ntp.org
hwclock --systohc

i.e. I got the (more or less) exact time from the time server and set the hardware / BIOS timer with this value.I renamed "/etc/adjtime" to beginn with a clean slate. During reboot (shut down phase) I noticed a message saying something like: "hwclock set to system time". I checked in the BIOS and there was a new time about one hour early(!). The boot phase then reset the time again, this time several hours forward (usually two to six hours). This is an iterating process, with a net gain of several hours per boot. It is not always whole hours -- like in a time zone error but it involves also minutes. System is set to UTC as affirmed by the "date" command. What could be the cause of this behaviour of the clock / timer?

View 14 Replies View Related

Ubuntu Installation :: No Ports Are Open After Updates And Reboot

Jan 20, 2010

Recently I've updated my small file server at home (Ubuntu 9.10) (Linux ubuntu 2.6.31-16-generic) and after I restarted my system No Ports where open anymore. I use ssh, vsftpd, apache2 and samba ... nothing start after reboot, I have to start it manually. I don't know what happened and if is it even direct result of some updates. I have another machine like that at work and there was no problems after resent updates.

View 1 Replies View Related

Ubuntu :: Setup Apps To Open On The Same Workspace After Reboot?

Mar 25, 2011

I use the workspaces a lot.It helps me de clutter my desktop.One thing that does bug me about it though, is that every time I start my PC or laptop I have to move the auto start apps to the workspace I want them on. They always kick off in Workspace 1, I want them in specific spaces.

View 9 Replies View Related

Fedora :: 11 Freezing - Stuck At The Screen For A Long Time And Doesn't Reboot

Sep 4, 2009

After installation of Fedora 11, I click reboot, it ejects out the disk, but is stuck at the screen for a long time and doesn't reboot so I manually had to reboot it. Today, surfing on firefox, it got frozen, and the touchpad worked, but everything was frozen nothing moved so I had to manually shut the laptop down. On bootup everything was ok. Im worried about corrupted files.Should I just reinstall Fedora 11? m using a dell studio 1555 laptop

View 4 Replies View Related

OpenSUSE :: When I Set The Timezone To Europe/UK The Date/time Are Correct UNTIL Reboot The Laptop?

Feb 25, 2010

I just installed OpenSuse 11.2 3 months ago on my laptop. I'm running with the Gnome Desktop. I live in Chicago and am currently in London. When I set the timezone to Europe/UK the date/time are correct UNTIL I reboot the laptop. After reboot if I type in the 'date' command it shows the time at 6+ hours from London time. When I check the hardware clock 'hwclock' it displays the correct London time. I check the time setup with yast and it shows the correct Timezone but again shows the 6+ hours difference. I change the time in yast and and my applications ( e-mail) display the correct local time again... UNTIL I reboot and then I'm right back where I started - wrong local time ! I suppose I could write a little startup script to do a 'hwclock --hctosys' but I thought I'd check here first to see if anyone out there had any ideas..BTW - I hate to say this but on the same laptop running XP I don't have this problem AND I didn't see this problem in OpenSuse 10.3 or 11.1

View 9 Replies View Related

General :: USB Webcam Just Works Once And Next Time Have To Reboot - Reset The Camera Without Rebooting ?

Mar 5, 2010

I'm using Ubuntu 9.10, and a usb webcam that is shown as 'Bus 001 Device 005: ID 0ac8:3450 Z-Star Microelectronics Corp.' by lsusb.

The problem is that on connecting the cam, it just works with the first program I start (skype, tokbox, messenger), and if I disconnect it or switch to another program, it stops to work and I have to restart my computer to make it work again.

Is there some good solution to reset the camera without rebooting to make it work again?

View 1 Replies View Related

Ubuntu :: Can't Open Terminal And Other Apps After Automatically Update And Reboot

Sep 24, 2010

I did an automatic update and rebooted this morning and I now have a bit of a nightmare situation where I can't open the majority of applications, including the terminal. When I rebooted, my desktop loaded as normal, but then when I try to open the terminal (from Applications -> Accessories or from my quick launch panel), nothing happens other than the quick launch panel disappears for a second then reappears. This is the case for most other apps, but not for Chrome (obviously).

EDIT: Used Alt+F2 to open the terminal, ran safe upgrade and then rebooted, but still having the same issue. As Ubuntu was booting, there was a "Broken pipe" message, which didn't stop the boot process but is still a bit worrying. I've run a file system check but this hasn't resolved the problem either.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved