[SOLVED] Remote usage

I'm kind of used to VNC and TeamViewer to give support to my machines but I want to ask for something completely different.
I want to setup a headless machine and remotely (from what is usually called a dumb terminal) connect to the machine and use its window manager and everything as if i was phisically using that machine with the keyboard and mouse plugged on it, but via network..... Is this so uncommon or difficult?
Thanks.
Last edited by Xi0N (2012-12-23 22:17:50)

I am using xvfb with x11vnc and ssh. I tried vncserver before but it could not handle i3 (no xkb extension or something like that).
On remote machine (under screen / tmux so it won't dissapear if i'm disconnected):
Xvfb :1 -nolisten tcp -screen 0 1280x1024x16
DISPLAY=:1 i3
x11vnc -display :1 -localhost
On local machine:
ssh -L 5900:localhost:5900
(or putty: connection -> ssh -> tunnels)
This gives you encrypted persistent vnc session. On reconnect you need to start x11vnc once again.

Similar Messages

  • [Solved] Remotely closing X apps over ssh

    I'm trying to figure out a way to remotely close an application (like firefox) cleanly over ssh.  I know I could run "kill [pid]" or "killall firefox-bin" to close it, but the default termination signal causes firefox to close immediately and give a message at its next start complaining about the program not being shut down properly.  I tried several other signals, all of which had the same problem. 
    Is there a signal that I can issue from kill that will be equivalent to closing the application by clicking the X, pressing Alt-F4, going to File > Quit, etc?  If not, is there some other command I can issue to accomplish the same goal?
    Last edited by liquidsunshine (2009-03-30 21:56:43)

    @Bralkein:
    i like the one liner, i've incorporated it into my script.  i split it up only because i wanted more meaningful errors.
    @liquidsunshine:
    thanks for asking this question, this turned out a nifty script.  i use pkill all the time, now i have wkill to gracefully close programs from CLI and it works from SSH just as well as locally.
    here's the finished product:
    #!/bin/bash
    # wKill
    # pbrisbin 2009
    # gracefully close a program's window from
    # a remote ssh session, or not
    # requires wmctrl
    # example usage: wkill firefox
    # always exit cleanly
    errorout() {
    if [ $R -eq 1 ]; then
    export DISPLAY=""
    fi
    echo "$1"
    exit $2
    # set DISPLAY to your remote X session if we're ssh'd
    # though: maybe a "local DISPLAY=" would work?
    # it'd be cleaner if it did
    if [ -z "$DISPLAY" ]; then
    export DISPLAY=":0.0"
    R=1
    else
    R=0
    fi
    # get the PID by process name
    PID=$(pgrep "$1") || errorout "no process by the name: $1" 1
    # get the hex by pid
    APP=$(wmctrl -pl | grep "$PID" | awk '{print $1}')
    # some things don't get reported correctly
    if [ -z "$APP" ]; then
    APP=$(wmctrl -l | grep "$1" | awk '{print $1}')
    if [ -z "$APP" ]; then
    errorout "wmctrl can't find pid: $PID or app: $1" 1
    fi
    fi
    # close the apps window
    wmctrl -i -c $APP || errorout "wmctrl could not close app: $APP" 1
    # put the DISPLAY back to prevent any problems
    # do this only if we set it above
    if [ $R -eq 1 ]; then
    export DISPLAY=""
    fi
    exit 0
    as Bralkein said, some windows might not get reported correctly.  i added a nested if in there for two reasons:
    a) anything running in a terminal (irssi, mutt, htop) will only be captured by this if they were started with the terminal.  something like `xterm -e mutt`.  if you opened xterm, then opened mutt.  it will be listed as "bash ~" or something in wmctrl and the pid would be of mutt and not xterm... so we're kinda SOL there
    b) b/c i'd rather get a nice "could not find pid: X for app: Y" instead of a grep or wmctrl error message (which is what you'd get if the $APP variable is empty)
    other than the CLI app issue, it should pretty much catch every exception and run quite cleanly.  now if only i knew a real programming language...
    Last edited by brisbin33 (2009-03-31 00:26:49)

  • [SOLVED] modprobe usage info displayed at boot

    This thread seems related to /sbin/modprobe runs at boot before udev [solved]
    I'm using mkinitcpio 0.7.2-1 on x86_64, my system is completely up-to-date, but somehow I seem to be still affected by FS#24766: I'm getting modprobe's usage info displayed at boot.
    My MODULES array in /etc/mkinitcpio.conf is empty and the file is unmodified.
    I have tried reinstalling mkinitcpio with no positive results.
    Any ideas? Thanks
    Last edited by kynikos (2011-07-31 18:59:41)

    Eheh, it worked, thanks! I wonder why reinstalling mkinitcpio didn't solve it then... well, nevermind

  • [SOLVED] Example usage of pyalpm library

    Hİ,
    I am trying to find my way around pyalpm library, but I couldn't be able to do much yet. So far, I have been able to get local database and sync databases but I couldn't be able to refresh databases, install/remove a new package etc.
    And also, it would be nice if someone explained to me the work flow of pyalpm, because so far I couldn't be able to fully understand what does exactly what.
    Thanks in advance
    Yaşar Arabacı
    Edit: I guess I just figured out everyday usage functionality of pyalpm. But I still need to see some pyalpm.transaction.init() examples. Especially, how are we passsing arguments to that. (e.g list, tuples, keywordargs,str??). And also, should I pass some arguments to pyalpm.transaction.prepare() or, just use it as it is?
    Edit:2
    Appearantly, pycman package have lots of them, so I am marking this thread solved.
    Last edited by yasar11732 (2011-07-01 23:16:21)

    I'm having the same issue. Has anyone found a solution?

  • [SOLVED] Remote Access to a home Arch system behind the router.

    Hello,
    I am trying to remotely access my home Arch system from school. I did try doing something and this is what I did:
    1. Used DynDns and NO-IP to setup a free domain, I thought NO-IP script was easy to run so I tested this on NO-IP.
    2. I then installed Openssh.
    3. Then I have setup the Port forwarding on the router to point to my ssh port (change from 22).
    4. I tried to ping, the domain name from NO-IP with no response.
    What I want to ask is... is there any better way of doing this?
    I dont need a desktop access, simple ssh should do for now.
    Thank You
    Gopi
    Last edited by gopichand (2011-11-01 00:50:13)

    OK, I have solved this by this process. Will work only if the router supports the DynDNS. I am assuming that you have created a DynDNS account, its free for 2 domains. I also had to make my computer use STATIC IP from my router, just specify any IP address outside the DHCP range.
    1. On the router, add the details about the DynDNS account. On my Belkin Router, I had to go to Firewall -> DDNS -> DynDNS and give the details and also enable it.
    2. By doing the above step, we don't have to install the client for DynDNS.
    3. On the router again, setup the port forwarding, again (on my Belkin Router) go to Firewall -> Virtual Servers -> Add the IP and the port numbers, I had to use the same number for both the incoming and the private port, though for other routers the number can differ?
    4. On the computer, I installed the openssh and then changed the login port to the one specified in the router for forwarding.
    5. Make the router and ssh logins as safe as possible. I understand that opening the router is not safe so I have to warn you.
    I can now login using my DynDNS domain name from anywhere woohoo!
    Last edited by gopichand (2011-11-01 01:07:23)

  • [Solved] cpu usage 100%, it is bug of lxpanel

    My archlinux is on an old PIII machine.  Recently, I found its CPU usage is 100%.
    But, I don't know how to solve it.  I can not found out which is cpu eater.
    vmstat is 0 idle, but on top view, there are a few process with lower cpu usage.
    I've tried both kernel, both cause 100% cpu usage.
    kernel26 2.6.37.5-1
    kernel26-lts 2.6.32.36-1
    # vmstat 2 10
    procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
    r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
    1  0      0 103060  26496 227192    0    0    52    38  202  425 56 41  1  3
    4  0      0 103300  26496 227196    0    0     0     0  192  439 54 47  0  0
    1  0      0 103300  26496 227196    0    0     0     0  303  589 64 36  0  0
    1  0      0 103316  26496 227196    0    0     0     0  367  656 64 37  0  0
    # top - 22:37:53 up 52 min,  2 users,  load average: 2.46, 1.87, 1.80
    Tasks:  81 total,   2 running,  79 sleeping,   0 stopped,   0 zombie
    Cpu(s): 57.9%us, 41.1%sy,  0.0%ni,  0.0%id,  0.0%wa,  1.0%hi,  0.0%si,  0.0%st
    Mem:    495416k total,   385172k used,   110244k free,    25784k buffers
    Swap:        0k total,        0k used,        0k free,   224916k cached
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND         
    1152 root      20   0 70992  20m 5976 S 14.5  4.2   1:13.63 X               
    23680 dlin      20   0  109m  22m  13m S  7.2  4.6   1:43.47 chromium         
    1887 dlin      20   0  138m  12m 9848 S  6.9  2.6   0:12.89 lxterminal       
    1182 dlin      20   0 99848  11m 8904 S  3.9  2.3   2:42.20 lxpanel         
    1191 dlin      20   0  297m  43m  27m S  1.0  9.1   1:00.54 chromium         
    21399 dlin      20   0  4404 1144  888 R  0.7  0.2   0:00.02 menu-cache-gen   
        1 root      20   0  1712  608  548 S  0.3  0.1   0:17.09 init             
        4 root      20   0     0    0    0 S  0.3  0.0   0:02.20 ksoftirqd/0     
      419 root      20   0     0    0    0 D  0.3  0.0   0:02.82 usb-storage     
    1161 root      20   0  3648 1144  988 S  0.3  0.2   0:00.65 hald-addon-stor
    Last edited by dlin (2011-04-02 16:38:08)

    It seems that the problem occurs to me too! Could it be linked with libreoffice?
    I think I have permission in ~/.cache directory:
    ls -lh |grep .cache
    drwxr-xr-x 2 manu manu 4,0K 29 mars 2010 cache
    [11:21][manu@compal:~]$ ls -lh .cache
    total 36K
    drwx------ 2 manu manu 4,0K 19 oct. 15:56 dconf
    -rw-r--r-- 1 manu manu 12K 14 mars 11:52 event-sound-cache.tdb.12c7aa4c6ede9c34246c65044a475d7e.i686-pc-linux-gnu
    drwxr-xr-x 3 manu manu 4,0K 18 août 2010 geeqie
    drwx------ 3 manu manu 4,0K 22 sept. 2010 gegl-0.1
    drwxr-xr-x 2 manu manu 4,0K 12 sept. 2010 gogglesmm
    drwx------ 2 manu manu 4,0K 1 avril 19:49 menus
    drwx------ 3 manu manu 4,0K 11 déc. 18:42 vlc
    [11:21][manu@compal:~]$ ls -lh .cache/menus
    total 80K
    -rw------- 1 manu manu 38K 23 nov. 19:24 26a80813bb7494e1d982502af748aef6
    -rw------- 1 manu manu 38K 1 avril 19:49 757379b1865bb943a0541b554ffbb809
    lxpanel is linked with .cache/menus directory?
    I will try to delete .cache and see what happens!!

  • [Solved] mtp usage

    I have just started using mtp to transfer files to my mobile phone & it works fast & flawlessly (yeah!)
    My only concern is dismounting / disconnecting the phone when the transfer is complete.
    Q1 is this required ? will data be corrupted if I just unplug the usb cable?
    Q2 what command do I need to use ?
    I have searched everywhere for an answer to above, but am drawing a blank.
    ps not looking for suggestions of alternatives to mtp.
    Last edited by flipper T (2013-12-17 03:29:19)

    Found this post (here : http://forum.xda-developers.com/showthr … t=1469519)
    Galaxy Nexus uses MTP for file Transfers in contrast to older versions that uses USB mass storage (in effect emulating an USB-Stick).
    MTP is a lot safer, because the PC doesn't get to the lowlevel filesystem details, so it can't ruin them with a bad unplug.
    When using MTP worst cases are when the file is still transferring it might not get saved completely. Well in theory android could get confused, but i don't think that will happen.
    With USB mass storage as protocol the worst case is an unreadable file system, but that protocol isn't available on stock google nexus.
    In short: It's save.
    I don't do windows, but maybe that's why windows doesn't even show the icon: It not needed.
    ...seems applicable / will mark as solved.
    Last edited by flipper T (2013-12-17 03:28:59)

  • [SOLVED] Remote install: how to convert LVM swap to a linux partition

    I am trying to install arch onto a remote server using the instructions at https://wiki.archlinux.org/index.php/Re … ux_Install , which outline a way to convert the swap partition to the new root partition:
    # swapoff /dev/sdaX
    # fdisk /dev/sda
    (set /dev/sdaX ID field to "Linux" - Hex 83)
    # mke2fs -j /dev/sdaX
    The problem I'm having is that the disks on the server are managed by LVM and I'm not sure how to convert the swap partition.  How do I make it available for the install?  fdisk does not want to operate on the disks because it doesn't support GPT.  Can parted do it?  Alternatively, the server has two hard drives so maybe one could be used for the install.
    /etc/fstab contains
    /dev/mapper/nc1-root / ext3 errors=remount-ro 0 1
    # /boot was on /dev/sda2 during installation
    UUID=c9bcfdd6-ae9a-4ea9-b679-53f29b95c63c /boot ext2 defaults 0 2
    /dev/mapper/nc1-swap_1 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
    fdisk -l gives
    WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
    Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
    255 heads, 63 sectors/track, 243201 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    Device Boot Start End Blocks Id System
    /dev/sda1 1 243202 1953514583+ ee GPT
    Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
    255 heads, 63 sectors/track, 243201 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x36613b58
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 63 498688 fd Linux raid autodetect
    Partition 1 does not end on cylinder boundary.
    /dev/sdb2 63 243202 1953014784 fd Linux raid autodetect
    Disk /dev/dm-0: 1967.2 GB, 1967191490560 bytes
    255 heads, 63 sectors/track, 239164 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    Disk /dev/dm-0 doesn't contain a valid partition table
    Disk /dev/dm-1: 32.9 GB, 32946257920 bytes
    255 heads, 63 sectors/track, 4005 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    Disk /dev/dm-1 doesn't contain a valid partition table
    dmsetup info gives
    Name: nc1-root
    State: ACTIVE
    Read Ahead: 256
    Tables present: LIVE
    Open count: 1
    Event number: 0
    Major, minor: 254, 0
    Number of targets: 1
    UUID: LVM-Jlpnv3mTyxFgW3HKlMKlaTsGN0Edd0n3iybhIaeGjTu7l27UQXd7TTMfVuhFyKzJ
    Name: nc1-swap_1
    State: ACTIVE
    Read Ahead: 256
    Tables present: LIVE
    Open count: 1
    Event number: 0
    Major, minor: 254, 1
    Number of targets: 1
    UUID: LVM-Jlpnv3mTyxFgW3HKlMKlaTsGN0Edd0n32wFEDu3V7u1C540QamjiPSe4qGR10o1A
    parted print all gives
    Model: ATA WDC WD2002FYPS-0 (scsi)
    Disk /dev/sda: 2000GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Number Start End Size File system Name Flags
    1 17.4kB 1018kB 1000kB bios_grub
    2 1018kB 257MB 256MB ext2 boot
    3 257MB 2000GB 2000GB lvm
    Model: ATA WDC WD2002FYPS-0 (scsi)
    Disk /dev/sdb: 2000GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Number Start End Size Type File system Flags
    1 1049kB 512MB 511MB primary boot, raid
    2 512MB 2000GB 2000GB primary raid
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/nc1-swap_1: 32.9GB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    Number Start End Size File system Flags
    1 0.00B 32.9GB 32.9GB linux-swap(v1)
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/nc1-root: 1967GB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    Number Start End Size File system Flags
    1 0.00B 1967GB 1967GB ext3
    Last edited by rhodie (2015-05-31 08:39:02)

    gdisk is a GPT analog of fdisk, FYI. However, since the swap partition is inside an LVM container, you don't need to touch the underlying disk at all. You should be able to run mkfs on the partition immediately after swapoff.

  • [Solved] Remote X over ssh not working

    Hello, I'm trying to forward X11 over ssh but it's not working.
    I type
    ssh -X 192.168.1.101
    followed by my password, and I log in just fine.
    I try to launch an X11 application and I get
    $kate
    kate: cannot connect to X server
    SSH is supposed to be forwarding a dummy $DISPLAY to allow remote X.  So I type
    $echo $DISPLAY
    and and get back a empty newline.
    Well how about
    $xinit
    Fatal server error:
    Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    Okay, I'll shut down xserver.
    I do it, and type
    $xinit
    again.  KDE launches on my remote box.  It makes sense, but contradicts many guides I have read which say it should launch on my local machine.
    What am I doing wrong here?  This should be ridiculously simple.
    Last edited by xenobrain (2010-07-06 20:45:16)

    Did you enable X forwarding in your sshd config?
    Did you xhost + (or ssh -Y)?
    Did you crop your DISPLAY variable in a bashrc or similar script run at login?
    Last edited by benob (2010-07-06 19:10:54)

  • [SOLVED]Remote location in thunar

    Hi,
    //EDIT
    I added to xinit.rc "exec dbus-launch openbox-session", and now I am able to use some thunar features
    gvfs 1.18.3-3
    gvfs-smb 1.18.3-3
    fusesmb 0.8.7-4
    fusesmbtool 0.3-2
    smbclient 4.1.5-1
    samba 4.1.5-1
    thunar-shares-plugin 0.2.0-7
    thunar-vfs 1.2.0-1
    smbtree shows me shares, but I cant figure out how to manage them via thunar ;/
    Is there some file where I need to enable remote location ?
    Thanks,
    I tried tips from topics below, but nothing works ;/
    https://bbs.archlinux.org/viewtopic.php?id=155075
    https://bbs.archlinux.org/viewtopic.php?id=169448
    https://wiki.archlinux.org/index.php/sa … nd_PCManFM
    https://wiki.archlinux.org/index.php/Th … _locations
    Last edited by chosen (2014-03-01 23:49:19)

    in xfce4 (4.8.0.3, the version I am using in ubuntu):
    You can do this to chang the icons in thunar and through the xfce desktop
    1) Click the main menu (Xfce menu at the bottom-left of the screen)
    2) Click Settings -> Appearance
    On Appearance dialog:
    1) Click Icons tab (or press alt+i)
    2) if you have icon themes installed you can selec them (such as Tango)
    -- this will change iconds for the entire desktop:
    Thunar, Xfce menu, etc
    EDIT: I now realize that this was about changing icon colors and the above was already noted in the first post
    .. any way it helped me change my icon theme to Tango...thanks
    Last edited by NeoH4x0r (2012-07-01 23:32:11)

  • [Solved] remote desktop session and 3d

    Very sorry if this was discussed previously or if this questions have been asked, but I'm struggling a bit to figure thisout. And I've googled, experimented for days and still couldn't get it right.
    So my requirement is very simple. I want to develop QML/QT5 applications over a remote desktop session in Linux. QML makes use of hardware 3d acceleration.
    I first had a gnome 3.8 I tried set up so that I could work with it remotely. But simple things like opening the "Activities" over VNC would crash Gnome. I tried KDE to no avail and now I'm on xfce, which doesn't use any of the 3D accelerated eye candy so VNC works fine.
    However any opengl application I try to run (like QML examples) doesn't work.
    I've read about tigervnc and virtualgl, and it didn't work too well. On top of that I would have a hard time having to run the application manually and attach the debugger later to it, it would be to bureaucratic.
    Apparently nomachines are eventually gonna come up with nx 4 which will have support to run on top of Gnome 3.8 for example, so I'm hopeful it'll just work with any other "opengl application".
    I also tried splashtop, with is ok however i'm stuck with 1024x768 resolutions and this annoying blue flickering of the screen.
    Is there any remote desktop alternative out there which enables me to successfully run simple opengl applications? I'm not talking games or anything, but simple applications with shades, glows, etc?
    Last edited by milasch (2013-06-13 20:14:32)

    kokoko3k wrote:If you don't need access to the local display, i'd try with turbovnc + virtualgl
    So yeah, your post made me try to compose a response which then I identified I had totally misunderstood the concept of virtualgl. Now I do understand it somewhat and I had been able to set everything up properly. Tada! it works.
    I'm using tigervnc + virtualgl, and I can start qtcreator with vglrun, then every process that qtcreator spawns will have 3d support through my vnc connection, which is exactly what I needed.
    I did notice that when I had slim setup, virtualgl didn't work. Only when I switched to gdm it did work.
    I wonder if I should start writing a wiki page about virtualgl, however my writing abilities suck and I'm not sure if it would create more confusion than help others...

  • [solved]Grep usage

    So if I'm reading the man pages right if I run something like 'grep -f awesome'  It'll search the whole filesystem for any file with 'awesome'
    Last edited by jedijimi (2014-03-23 19:19:49)

    No.
    -f FILE, --file=FILE
                  Obtain patterns from FILE, one per line.  The empty file contains zero patterns, and therefore matches nothing.  (-f is specified by POSIX.)
    The -f option is for when you have a file containing the patterns you wish to match against...
    $ grep alias .bashrc
    # Source ~/.bash_aliases
    if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
    $ echo alias > patterns
    $ grep -f patterns .bashrc
    # Source ~/.bash_aliases
    if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases

  • [solved] stat64() usage in C

    Can someone tell me how to use the large file functions, especially stat64()? I always get
    warning: implicit declaration of function 'stat64'
    and for the struct stat64 named "filestat"
    error: storage size of 'filestat' isn't known
    I already crawled every page I found via google and tried with no success:
    - compiling with -D_FILE_OFFSET_BITS=64
    - #define __USE_LARGEFILE64
    - #define _LARGEFILE_SOURCE
    - #define _LARGEFILE64_SOURCE
    Any suggestions? Thanks in advance!
    lynix
    Last edited by lynix (2009-10-23 21:11:22)

    why not use just the stat instead of stat64 ??
    i rly dont know what this c program need to do i'm a beginner c/c++ programmer, but at least i can use google and i found that use stat instead of stat64...
    and i tried to and compiles without a problem, so i think it need to be good
    1 /*
    2 * =====================================================================================
    3 *
    4 * Filename: test.c
    5 *
    6 * Description:
    7 *
    8 * Version: 1.0
    9 * Created: 10/23/2009 11:52:20 PM
    10 * Revision: none
    11 * Compiler: gcc
    12 *
    13 * Author: Czaka Hunor (), [email protected]
    14 * Company:
    15 *
    16 * =====================================================================================
    17 */
    18
    19 #include <sys/stat.h>
    20
    21 #define __USE_LARGEFILE64
    22 #define _LARGEFILE_SOURCE
    23 #define _LARGEFILE64_SOURCE
    24
    25 int main()
    26 {
    27 struct stat mystat;
    28
    29 stat("/etc/fstab", &mystat);
    30
    31 return 0;
    32 }
    ┌─[ hybrid@arch ~ ]
    └─[ $> gcc -Wall -c test.c
    test.c: In function 'main':
    test.c:27: error: storage size of 'mystat' isn't known
    test.c:29: warning: implicit declaration of function '_stat64'
    test.c:27: warning: unused variable 'mystat'
    ┌─[ hybrid@arch ~ ]
    └─[ $> gcc -Wall -c test.c
    ┌─[ hybrid@arch ~ ]
    └─[ $> gcc test.o -o test
    ┌─[ hybrid@arch ~ ]
    └─[ $> ./test
    ┌─[ hybrid@arch ~ ]
    └─[ $>
    hope i helped

  • [SOLVED] swap usage when there is plenty of ram availibale

    Hi guys, I'm not sure if this is correct subforum, but here is the question
    By default linux kernel uses swap partition even if there is lots of ram availiable. What's the purpose of this? And is there a way to turn this off in Arch.
    Last edited by ogronom (2008-11-03 18:59:10)

    found 2 articles (pretty old) about this issue
    http://www.beranger.org/index.php?article=1547&page=3k
    http://lwn.net/Articles/83588/

  • P2 Problem trying to solve remotely

    This could be tricky, but...
    a colleague who shoots DVCPRO HD on a Firestore 100 had a strange problem with the P2 import recently. Just on one clip. He was able to import te clip right before it, and the clip after it, and was able to view the problem clip in the Log & Transfer window. But the clip carries a red exclamation mark and won't import. He's a good and experienced shooter with this camera and hard drive.
    Now, he's in a different city and I don't have access to the system, but I agreed to try to figure out what's going on. Does this situation sound familiar to anybody?

    Thanks, Shane, but that didn't do it. I deleted the clip from the queue, selected it in the log window and followed the procedure you outlined. When I dragged the clip into the queue again, the exclamation mark still appears.
    I'm now in front of the MacPro and this clip (the bulk of a taped interview) is noted as "spanned". Don't know if that's an issue. In the preview window, the clip seems complete, and has audio. But in the Logging window, the other clips list the FS as their reel, and this clip listed "Spanned Reel" at one point. Now the reel name is blank.

Maybe you are looking for

  • India -With Holding Tax - Changes As per the Budget Approval

    Dear All Many of you are aware, there will not be any surcharge, education & higher education cess for with holding tax in Indai from 01.10.2009. Our client is operating seperate tax codes for Basic Duty, Surcharge and Education Cess. We have change

  • Nokia 5800 3.0 Update Orange UK?

    Got my 5800 today from Orange in the UK yet theres no update available, when I know theres a newer version. I'm currently on 21.0.025. Does anyone know how to get the latest update on Orange, or when its coming?

  • And again firewall issue... (but take a look, pls)

    I read posts here again and again, but didn't find an answer; situation: 1. my rmi-app works fine on local network; 2. i deployed Server-side of it on my web-server; 3. web-admin opened 2 ports (1099 & 3456) in server firewall; 4. server started; 5.

  • QoS - can u trust dscp and cos?

    Hello, is it possible to trust DSCP and COS at the same time? If so, which one wins?

  • Belkin Serial Num

    I went to register my bew Belkin and I can't find the serial number on my Belkin TuneCast II. Could somebody please tell me where to look please? Thank you so much. Pictures showing the location (if possible on this forum) would be truly appreciated!