- android系统selinux中添加新属性property
辉色投像
1.定位/android/system/sepolicy/private/property_contexts声明属性开头:persist.charge声明属性类型:u:object_r:system_prop:s0图12.定位到android/system/sepolicy/public/domain.te删除neverallow{domain-init}default_prop:property
- 理解Gunicorn:Python WSGI服务器的基石
范范0825
ipythonlinux运维
理解Gunicorn:PythonWSGI服务器的基石介绍Gunicorn,全称GreenUnicorn,是一个为PythonWSGI(WebServerGatewayInterface)应用设计的高效、轻量级HTTP服务器。作为PythonWeb应用部署的常用工具,Gunicorn以其高性能和易用性著称。本文将介绍Gunicorn的基本概念、安装和配置,帮助初学者快速上手。1.什么是Gunico
- mysql禁用远程登录
igotyback
mysql
去mysql库中的user表里,将host都改成localhost之后刷新权限FLUSHPRIVILEGES;
- Linux下QT开发的动态库界面弹出操作(SDL2)
13jjyao
QT类qt开发语言sdl2linux
需求:操作系统为linux,开发框架为qt,做成需带界面的qt动态库,调用方为java等非qt程序难点:调用方为java等非qt程序,也就是说调用方肯定不带QApplication::exec(),缺少了这个,QTimer等事件和QT创建的窗口将不能弹出(包括opencv也是不能弹出);这与qt调用本身qt库是有本质的区别的思路:1.调用方缺QApplication::exec(),那么我们在接口
- git常用命令笔记
咩酱-小羊
git笔记
###用习惯了idea总是不记得git的一些常见命令,需要用到的时候总是担心旁边站了人~~~记个笔记@_@,告诉自己看笔记不丢人初始化初始化一个新的Git仓库gitinit配置配置用户信息gitconfig--globaluser.name"YourName"gitconfig--globaluser.email"
[email protected]"基本操作克隆远程仓库gitclone查看
- linux sdl windows.h,Windows下的SDL安装
奔跑吧linux内核
linuxsdlwindows.h
首先你要下载并安装SDL开发包。如果装在C盘下,路径为C:\SDL1.2.5如果在WINDOWS下。你可以按以下步骤:1.打开VC++,点击"Tools",Options2,点击directories选项3.选择"Includefiles"增加一个新的路径。"C:\SDL1.2.5\include"4,现在选择"Libaryfiles“增加"C:\SDL1.2.5\lib"现在你可以开始编写你的第
- python os.environ_python os.environ 读取和设置环境变量
weixin_39605414
pythonos.environ
>>>importos>>>os.environ.keys()['LC_NUMERIC','GOPATH','GOROOT','GOBIN','LESSOPEN','SSH_CLIENT','LOGNAME','USER','HOME','LC_PAPER','PATH','DISPLAY','LANG','TERM','SHELL','J2REDIR','LC_MONETARY','QT_QPA
- linux中sdl的使用教程,sdl使用入门
Melissa Corvinus
linux中sdl的使用教程
本文通过一个简单示例讲解SDL的基本使用流程。示例中展示一个窗口,窗口里面有个随机颜色快随机移动。当我们鼠标点击关闭按钮时间窗口关闭。基本步骤如下:1.初始化SDL并创建一个窗口。SDL_Init()初始化SDL_CreateWindow()创建窗口2.纹理渲染存储RGB和存储纹理的区别:比如一个从左到右由红色渐变到蓝色的矩形,用存储RGB的话就需要把矩形中每个点的具体颜色值存储下来;而纹理只是一
- PHP环境搭建详细教程
好看资源平台
前端php
PHP是一个流行的服务器端脚本语言,广泛用于Web开发。为了使PHP能够在本地或服务器上运行,我们需要搭建一个合适的PHP环境。本教程将结合最新资料,介绍在不同操作系统上搭建PHP开发环境的多种方法,包括Windows、macOS和Linux系统的安装步骤,以及本地和Docker环境的配置。1.PHP环境搭建概述PHP环境的搭建主要分为以下几类:集成开发环境:例如XAMPP、WAMP、MAMP,这
- 使用 FinalShell 进行远程连接(ssh 远程连接 Linux 服务器)
编程经验分享
开发工具服务器sshlinux
目录前言基本使用教程新建远程连接连接主机自定义命令路由追踪前言后端开发,必然需要和服务器打交道,部署应用,排查问题,查看运行日志等等。一般服务器都是集中部署在机房中,也有一些直接是云服务器,总而言之,程序员不可能直接和服务器直接操作,一般都是通过ssh连接来登录服务器。刚接触远程连接时,使用的是XSHELL来远程连接服务器,连接上就能够操作远程服务器了,但是仅用XSHELL并没有上传下载文件的功能
- SQL Server_查询某一数据库中的所有表的内容
qq_42772833
SQLServer数据库sqlserver
1.查看所有表的表名要列出CrabFarmDB数据库中的所有表(名),可以使用以下SQL语句:USECrabFarmDB;--切换到目标数据库GOSELECTTABLE_NAMEFROMINFORMATION_SCHEMA.TABLESWHERETABLE_TYPE='BASETABLE';对这段SQL脚本的解释:SELECTTABLE_NAME:这个语句的作用是从查询结果中选择TABLE_NAM
- 使用LLaVa和Ollama实现多模态RAG示例
llzwxh888
python人工智能开发语言
本文将详细介绍如何使用LLaVa和Ollama实现多模态RAG(检索增强生成),通过提取图像中的结构化数据、生成图像字幕等功能来展示这一技术的强大之处。安装环境首先,您需要安装以下依赖包:!pipinstallllama-index-multi-modal-llms-ollama!pipinstallllama-index-readers-file!pipinstallunstructured!p
- 在一台Ubuntu计算机上构建Hyperledger Fabric网络
落叶无声9
区块链超级账本Hyperledgerfabric区块链ubuntu构建hyperledgerfabric
在一台Ubuntu计算机上构建HyperledgerFabric网络Hyperledgerfabric是一个开源的区块链应用程序平台,为开发基于区块链的应用程序提供了一个起点。当我们提到HyperledgerFabric网络时,我们指的是使用HyperledgerFabric的正在运行的系统。即使只使用最少数量的组件,部署Fabric网络也不是一件容易的事。Fabric社区创建了一个名为Cello
- libyuv之linux编译
jaronho
Linuxlinux运维服务器
文章目录一、下载源码二、编译源码三、注意事项1、银河麒麟系统(aarch64)(1)解决armv8-a+dotprod+i8mm指令集支持问题(2)解决armv9-a+sve2指令集支持问题一、下载源码到GitHub网站下载https://github.com/lemenkov/libyuv源码,或者用直接用git克隆到本地,如:gitclonehttps://github.com/lemenko
- webpack图片等资源的处理
dmengmeng
需要的loaderfile-loader(让我们可以引入这些资源文件)url-loader(其实是file-loader的二次封装)img-loader(处理图片所需要的)在没有使用任何处理图片的loader之前,比如说css中用到了背景图片,那么最后打包会报错的,因为他没办法处理图片。其实你只想能够使用图片的话。只加一个file-loader就可以,打开网页能准确看到图片。{test:/\.(p
- 01-Git初识
Meereen
Gitgit
01-Git初识概念:一个免费开源,分布式的代码版本控制系统,帮助开发团队维护代码作用:记录代码内容。切换代码版本,多人开发时高效合并代码内容如何学:个人本机使用:Git基础命令和概念多人共享使用:团队开发同一个项目的代码版本管理Git配置用户信息配置:用户名和邮箱,应用在每次提交代码版本时表明自己的身份命令:查看git版本号git-v配置用户名gitconfig--globaluser.name
- ARM驱动学习之5 LEDS驱动
JT灬新一
嵌入式C底层arm开发学习单片机
ARM驱动学习之5LEDS驱动知识点:•linuxGPIO申请函数和赋值函数–gpio_request–gpio_set_value•三星平台配置GPIO函数–s3c_gpio_cfgpin•GPIO配置输出模式的宏变量–S3C_GPIO_OUTPUT注意点:DRIVER_NAME和DEVICE_NAME匹配。实现步骤:1.加入需要的头文件://Linux平台的gpio头文件#include//三
- ARM驱动学习之4小结
JT灬新一
嵌入式C++arm开发学习linux
ARM驱动学习之4小结#include#include#include#include#include#defineDEVICE_NAME"hello_ctl123"MODULE_LICENSE("DualBSD/GPL");MODULE_AUTHOR("TOPEET");staticlonghello_ioctl(structfile*file,unsignedintcmd,unsignedlo
- 【华为OD技术面试真题精选 - 非技术题】 -HR面,综合面_华为od hr面
一个射手座的程序媛
程序员华为od面试职场和发展
最后的话最近很多小伙伴找我要Linux学习资料,于是我翻箱倒柜,整理了一些优质资源,涵盖视频、电子书、PPT等共享给大家!资料预览给大家整理的视频资料:给大家整理的电子书资料:如果本文对你有帮助,欢迎点赞、收藏、转发给朋友,让我有持续创作的动力!网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。需要这份系统化的资料的朋友,可以点击这里获
- 【Git】常见命令(仅笔记)
好想有猫猫
GitLinux学习笔记git笔记elasticsearchlinuxc++
文章目录创建/初始化本地仓库添加本地仓库配置项提交文件查看仓库状态回退仓库查看日志分支删除文件暂存工作区代码远程仓库使用`.gitigore`文件让git不追踪一些文件标签创建/初始化本地仓库gitinit添加本地仓库配置项gitconfig-l#以列表形式显示配置项gitconfiguser.name"ljh"#配置user.namegitconfiguser.email"
[email protected]
- 简介Shell、zsh、bash
zhaosuningsn
Shellzshbashshelllinuxbash
Shell是Linux和Unix的外壳,类似衣服,负责外界与Linux和Unix内核的交互联系。例如接收终端用户及各种应用程序的命令,把接收的命令翻译成内核能理解的语言,传递给内核,并把内核处理接收的命令的结果返回给外界,即Shell是外界和内核沟通的桥梁或大门。Linux和Unix提供了多种Shell,其中有种bash,当然还有其他好多种。Mac电脑中不但有bash,还有一个zsh,预装的,据说
- 在Ubuntu中编译含有JSON的文件出现报错
芝麻糊76
Linuxkill_buglinuxubuntujson
在ubuntu中进行JSON相关学习的时候,我发现了一些小问题,决定与大家进行分享,减少踩坑时候出现不必要的时间耗费截取部分含有JSON部分的代码进行展示char*str="{\"title\":\"JSONExample\",\"author\":{\"name\":\"JohnDoe\",\"age\":35,\"isVerified\":true},\"tags\":[\"json\",\"
- Linux MariaDB使用OpenSSL安装SSL证书
Meta39
MySQLOracleMariaDBLinuxWindowsssllinuxmariadb
进入到证书存放目录,批量删除.pem证书警告:确保已经进入到证书存放目录find.-typef-iname\*.pem-delete查看是否安装OpenSSLopensslversion没有则安装yuminstallopensslopenssl-devel开启SSL编辑/etc/my.cnf文件(没有的话就创建,但是要注意,在/etc/my.cnf.d/server.cnf配置了datadir的,
- ExpRe[25] bash外的其它shell:zsh和fish
tritone
ExpRebashlinuxubuntushell
文章目录zsh基础配置实用特性插件`autojump`语法高亮自动补全fish优点缺点时效性本篇撰写时间为2021.12.15,由于计算机技术日新月异,博客中所有内容都有时效和版本限制,具体做法不一定总行得通,链接可能改动失效,各种软件的用法可能有修改。但是其中透露的思想往往是值得学习的。本篇前置:ExpRe[10]Ubuntu[2]准备神秘软件、备份恢复软件https://www.cnblogs
- 网络编程基础
记得开心一点啊
网络
目录♫什么是网络编程♫Socket套接字♪什么是Socket套接字♪数据报套接字♪流套接字♫数据报套接字通信模型♪数据报套接字通讯模型♪DatagramSocket♪DatagramPacket♪实现UDP的服务端代码♪实现UDP的客户端代码♫流套接字通信模型♪流套接字通讯模型♪ServerSocket♪Socket♪实现TCP的服务端代码♪实现TCP的客户端代码♫什么是网络编程网络编程,指网络上
- xilinx vivado PULLMODE 设置思路
坚持每天写程序
fpga开发
1.xilinx引脚分类XilinxIO的分类:以XC7A100TFGG484为例,其引脚分类如下:1.UserIO(用户IO):用户使用的普通IO1.1专用(Dedicated)IO:命名为IO_LXXY_#、IO_XX_#的引脚,有固定的特定用途,多为底层特定功能的直接实现,如差分对信号、关键控制信号等,不能随意变更。1.2多功能(Multi-Function)IO:命名为IO_LXXY_ZZ
- 2.2.6 通知类控件 Toast、Menu
常思行
本文例程下载:WillFlow_Toast、WillFlowMenu一、什么是Toast?Toast也被叫做吐司,是Android系统提供的一种非常好的提醒方式,在程序中可以使用它将一些短小的信息通知给用户,它有如下两个特点:Toast是没有焦点的Toast显示的时间有限过一定的时间就会自动消失所以一般来讲Toast的使用并不会影响我们的正常操作,并且它通常不会占用太大的屏幕空间,有着良好的用户体
- 【从浅识到熟知Linux】Linux发展史
Jammingpro
从浅学到熟知Linuxlinux运维服务器
归属专栏:从浅学到熟知Linux个人主页:Jammingpro每日努力一点点,技术变化看得见文章前言:本篇文章记录Linux发展的历史,因在介绍Linux过程中涉及的其他操作系统及人物,本文对相关内容也有所介绍。文章目录Unix发展史Linux发展史开源Linux官网企业应用情况发行版本在学习Linux前,我们可能都会问Linux从哪里来?它是如何发展的。但在介绍Linux之前,需要先介绍一下Un
- linux 发展史
种树的猴子
内核java操作系统linux大数据
linux发展史说明此前对linux认识模糊一知半解,近期通过学习将自己对于linux的发展总结一下方便大家日后的学习。那Linux是目前一款非常火热的开源操作系统,可是linux是什么时候出现的,又是因为什么样的原因被开发出来的呢。以下将对linux的发展历程进行详细的讲解。目录一、Linux发展背景二、UINIX的诞生三、UNIX的重要分支-BSD的诞生四、Minix的诞生五、GNU与Free
- Linux sh命令
fengyehongWorld
Linuxlinux
目录一.基本语法二.选项2.1-c字符串中读取内容,并执行2.1.1基本用法2.1.2获取当前目录下失效的超链接2.2-x每个命令执行之前,将其打印出来2.3结合Here文档使用一.基本语法⏹Linux和Unix系统中用于执行shell脚本或运行命令的命令。sh[选项][脚本文件][参数...]⏹选项-c:从字符串中读取内容,并执行。-x:在每个命令执行之前,将其打印出来。-s:从标准流中读取内容
- 312个免费高速HTTP代理IP(能隐藏自己真实IP地址)
yangshangchuan
高速免费superwordHTTP代理
124.88.67.20:843
190.36.223.93:8080
117.147.221.38:8123
122.228.92.103:3128
183.247.211.159:8123
124.88.67.35:81
112.18.51.167:8123
218.28.96.39:3128
49.94.160.198:3128
183.20
- pull解析和json编码
百合不是茶
androidpull解析json
n.json文件:
[{name:java,lan:c++,age:17},{name:android,lan:java,age:8}]
pull.xml文件
<?xml version="1.0" encoding="utf-8"?>
<stu>
<name>java
- [能源与矿产]石油与地球生态系统
comsci
能源
按照苏联的科学界的说法,石油并非是远古的生物残骸的演变产物,而是一种可以由某些特殊地质结构和物理条件生产出来的东西,也就是说,石油是可以自增长的....
那么我们做一个猜想: 石油好像是地球的体液,我们地球具有自动产生石油的某种机制,只要我们不过量开采石油,并保护好
- 类与对象浅谈
沐刃青蛟
java基础
类,字面理解,便是同一种事物的总称,比如人类,是对世界上所有人的一个总称。而对象,便是类的具体化,实例化,是一个具体事物,比如张飞这个人,就是人类的一个对象。但要注意的是:张飞这个人是对象,而不是张飞,张飞只是他这个人的名字,是他的属性而已。而一个类中包含了属性和方法这两兄弟,他们分别用来描述对象的行为和性质(感觉应该是
- 新站开始被收录后,我们应该做什么?
IT独行者
PHPseo
新站开始被收录后,我们应该做什么?
百度终于开始收录自己的网站了,作为站长,你是不是觉得那一刻很有成就感呢,同时,你是不是又很茫然,不知道下一步该做什么了?至少我当初就是这样,在这里和大家一份分享一下新站收录后,我们要做哪些工作。
至于如何让百度快速收录自己的网站,可以参考我之前的帖子《新站让百
- oracle 连接碰到的问题
文强chu
oracle
Unable to find a java Virtual Machine--安装64位版Oracle11gR2后无法启动SQLDeveloper的解决方案
作者:草根IT网 来源:未知 人气:813标签:
导读:安装64位版Oracle11gR2后发现启动SQLDeveloper时弹出配置java.exe的路径,找到Oracle自带java.exe后产生的路径“C:\app\用户名\prod
- Swing中按ctrl键同时移动鼠标拖动组件(类中多借口共享同一数据)
小桔子
java继承swing接口监听
都知道java中类只能单继承,但可以实现多个接口,但我发现实现多个接口之后,多个接口却不能共享同一个数据,应用开发中想实现:当用户按着ctrl键时,可以用鼠标点击拖动组件,比如说文本框。
编写一个监听实现KeyListener,NouseListener,MouseMotionListener三个接口,重写方法。定义一个全局变量boolea
- linux常用的命令
aichenglong
linux常用命令
1 startx切换到图形化界面
2 man命令:查看帮助信息
man 需要查看的命令,man命令提供了大量的帮助信息,一般可以分成4个部分
name:对命令的简单说明
synopsis:命令的使用格式说明
description:命令的详细说明信息
options:命令的各项说明
3 date:显示时间
语法:date [OPTION]... [+FORMAT]
- eclipse内存优化
AILIKES
javaeclipsejvmjdk
一 基本说明 在JVM中,总体上分2块内存区,默认空余堆内存小于 40%时,JVM就会增大堆直到-Xmx的最大限制;空余堆内存大于70%时,JVM会减少堆直到-Xms的最小限制。 1)堆内存(Heap memory):堆是运行时数据区域,所有类实例和数组的内存均从此处分配,是Java代码可及的内存,是留给开发人
- 关键字的使用探讨
百合不是茶
关键字
//关键字的使用探讨/*访问关键词private 只能在本类中访问public 只能在本工程中访问protected 只能在包中和子类中访问默认的 只能在包中访问*//*final 类 方法 变量 final 类 不能被继承 final 方法 不能被子类覆盖,但可以继承 final 变量 只能有一次赋值,赋值后不能改变 final 不能用来修饰构造方法*///this()
- JS中定义对象的几种方式
bijian1013
js
1. 基于已有对象扩充其对象和方法(只适合于临时的生成一个对象):
<html>
<head>
<title>基于已有对象扩充其对象和方法(只适合于临时的生成一个对象)</title>
</head>
<script>
var obj = new Object();
- 表驱动法实例
bijian1013
java表驱动法TDD
获得月的天数是典型的直接访问驱动表方式的实例,下面我们来展示一下:
MonthDaysTest.java
package com.study.test;
import org.junit.Assert;
import org.junit.Test;
import com.study.MonthDays;
public class MonthDaysTest {
@T
- LInux启停重启常用服务器的脚本
bit1129
linux
启动,停止和重启常用服务器的Bash脚本,对于每个服务器,需要根据实际的安装路径做相应的修改
#! /bin/bash
Servers=(Apache2, Nginx, Resin, Tomcat, Couchbase, SVN, ActiveMQ, Mongo);
Ops=(Start, Stop, Restart);
currentDir=$(pwd);
echo
- 【HBase六】REST操作HBase
bit1129
hbase
HBase提供了REST风格的服务方便查看HBase集群的信息,以及执行增删改查操作
1. 启动和停止HBase REST 服务 1.1 启动REST服务
前台启动(默认端口号8080)
[hadoop@hadoop bin]$ ./hbase rest start
后台启动
hbase-daemon.sh start rest
启动时指定
- 大话zabbix 3.0设计假设
ronin47
What’s new in Zabbix 2.0?
去年开始使用Zabbix的时候,是1.8.X的版本,今年Zabbix已经跨入了2.0的时代。看了2.0的release notes,和performance相关的有下面几个:
:: Performance improvements::Trigger related da
- http错误码大全
byalias
http协议javaweb
响应码由三位十进制数字组成,它们出现在由HTTP服务器发送的响应的第一行。
响应码分五种类型,由它们的第一位数字表示:
1)1xx:信息,请求收到,继续处理
2)2xx:成功,行为被成功地接受、理解和采纳
3)3xx:重定向,为了完成请求,必须进一步执行的动作
4)4xx:客户端错误,请求包含语法错误或者请求无法实现
5)5xx:服务器错误,服务器不能实现一种明显无效的请求
- J2EE设计模式-Intercepting Filter
bylijinnan
java设计模式数据结构
Intercepting Filter类似于职责链模式
有两种实现
其中一种是Filter之间没有联系,全部Filter都存放在FilterChain中,由FilterChain来有序或无序地把把所有Filter调用一遍。没有用到链表这种数据结构。示例如下:
package com.ljn.filter.custom;
import java.util.ArrayList;
- 修改jboss端口
chicony
jboss
修改jboss端口
%JBOSS_HOME%\server\{服务实例名}\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml
中找到
<!-- The ports-default bindings are obtained by taking the base bindin
- c++ 用类模版实现数组类
CrazyMizzz
C++
最近c++学到数组类,写了代码将他实现,基本具有vector类的功能
#include<iostream>
#include<string>
#include<cassert>
using namespace std;
template<class T>
class Array
{
public:
//构造函数
- hadoop dfs.datanode.du.reserved 预留空间配置方法
daizj
hadoop预留空间
对于datanode配置预留空间的方法 为:在hdfs-site.xml添加如下配置
<property>
<name>dfs.datanode.du.reserved</name>
<value>10737418240</value>
 
- mysql远程访问的设置
dcj3sjt126com
mysql防火墙
第一步: 激活网络设置 你需要编辑mysql配置文件my.cnf. 通常状况,my.cnf放置于在以下目录: /etc/mysql/my.cnf (Debian linux) /etc/my.cnf (Red Hat Linux/Fedora Linux) /var/db/mysql/my.cnf (FreeBSD) 然后用vi编辑my.cnf,修改内容从以下行: [mysqld] 你所需要: 1
- ios 使用特定的popToViewController返回到相应的Controller
dcj3sjt126com
controller
1、取navigationCtroller中的Controllers
NSArray * ctrlArray = self.navigationController.viewControllers;
2、取出后,执行,
[self.navigationController popToViewController:[ctrlArray objectAtIndex:0] animated:YES
- Linux正则表达式和通配符的区别
eksliang
正则表达式通配符和正则表达式的区别通配符
转载请出自出处:http://eksliang.iteye.com/blog/1976579
首先得明白二者是截然不同的
通配符只能用在shell命令中,用来处理字符串的的匹配。
判断一个命令是否为bash shell(linux 默认的shell)的内置命令
type -t commad
返回结果含义
file 表示为外部命令
alias 表示该
- Ubuntu Mysql Install and CONF
gengzg
Install
http://www.navicat.com.cn/download/navicat-for-mysql
Step1: 下载Navicat ,网址:http://www.navicat.com/en/download/download.html
Step2:进入下载目录,解压压缩包:tar -zxvf navicat11_mysql_en.tar.gz
- 批处理,删除文件bat
huqiji
windowsdos
@echo off
::演示:删除指定路径下指定天数之前(以文件名中包含的日期字符串为准)的文件。
::如果演示结果无误,把del前面的echo去掉,即可实现真正删除。
::本例假设文件名中包含的日期字符串(比如:bak-2009-12-25.log)
rem 指定待删除文件的存放路径
set SrcDir=C:/Test/BatHome
rem 指定天数
set DaysAgo=1
- 跨浏览器兼容的HTML5视频音频播放器
天梯梦
html5
HTML5的video和audio标签是用来在网页中加入视频和音频的标签,在支持html5的浏览器中不需要预先加载Adobe Flash浏览器插件就能轻松快速的播放视频和音频文件。而html5media.js可以在不支持html5的浏览器上使video和audio标签生效。 How to enable <video> and <audio> tags in
- Bundle自定义数据传递
hm4123660
androidSerializable自定义数据传递BundleParcelable
我们都知道Bundle可能过put****()方法添加各种基本类型的数据,Intent也可以通过putExtras(Bundle)将数据添加进去,然后通过startActivity()跳到下一下Activity的时候就把数据也传到下一个Activity了。如传递一个字符串到下一个Activity
把数据放到Intent
- C#:异步编程和线程的使用(.NET 4.5 )
powertoolsteam
.net线程C#异步编程
异步编程和线程处理是并发或并行编程非常重要的功能特征。为了实现异步编程,可使用线程也可以不用。将异步与线程同时讲,将有助于我们更好的理解它们的特征。
本文中涉及关键知识点
1. 异步编程
2. 线程的使用
3. 基于任务的异步模式
4. 并行编程
5. 总结
异步编程
什么是异步操作?异步操作是指某些操作能够独立运行,不依赖主流程或主其他处理流程。通常情况下,C#程序
- spark 查看 job history 日志
Stark_Summer
日志sparkhistoryjob
SPARK_HOME/conf 下:
spark-defaults.conf 增加如下内容
spark.eventLog.enabled true spark.eventLog.dir hdfs://master:8020/var/log/spark spark.eventLog.compress true
spark-env.sh 增加如下内容
export SP
- SSH框架搭建
wangxiukai2015eye
springHibernatestruts
MyEclipse搭建SSH框架 Struts Spring Hibernate
1、new一个web project。
2、右键项目,为项目添加Struts支持。
选择Struts2 Core Libraries -<MyEclipes-Library>
点击Finish。src目录下多了struts
Comments
Thank you for this good
Thank you for this good tutorial.
But the configuring of Runlevels is done with:
update-rc.d vncserver defaults
Good catch! I've updated the
Good catch! I've updated the article.
nice
only want to say well done article
Finally!
Don't know why it was so hard to find *tight* vnc server + ubuntu + start before logging in... so many permutations of useless info before I came here :)
"Command not found"?
I'm trying to run the script and I can't get it to work properly. I've been running it and all I get is "sudo: /etc/init.d/vncserver: command not found"
type sudo nano
type sudo nano /etc/init.d/vncserver
Set executable!
I figured it out. You should amend your script to set the execute bit sudo chmod +c /etc/init.d/vnccserver
Updated the article
Thanks for the feedback - I've updated the article to note setting the execute bit.
One step closer
It's working now, however on reboot It does not launch the commands in ~/.vnc/xstartup, the curious thing is that if I run it manually, it works fine.
Perhaps you need to set the
Perhaps you need to set the execute bit on your xstartup file as well? Though it should be created automatically when you first run the server.
Can't log in after connection.
I completed the installation procedure and everything seems to be OK. But after I made connection, using a tightvnc client, I get a blank screen. At that moment there is no user logged in at the host yet. When I start the vncserver at the host after there is logged in a user there is no problem. Can anybody tell me what is wrong.
xstartup?
It sounds like it might be caused by the contents of your xstartup file. When the VNC server starts, there should be whatever processes you asked the VNC server to start. Try running:
ps auxww | grep
to see if processes are running as expected or not.
great write-up, I tried to do
great write-up, I tried to do this in 8.04 LTS and got the same issue of just a blank grey screen, no login
myusername@ubuntu:~$ ps auxww | grep myusername
myusername 6011 0.0 0.1 7428 5168 ? S 09:59 0:00 Xtightvnc :1 -de/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 120000 -rfbauth /home/myusername1R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/foni/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/share/fonts/X11/misc/,/usr/share/fonts/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
myusername 6032 0.2 0.6 79828 21324 ? S 09:59 0:00 x-terminal-emulmy-vnc-server Desktop
myusername 6033 0.1 0.3 20120 11544 ? S 09:59 0:00 x-window-manage
myusername 6130 0.1 0.1 6984 4064 ? S 09:59 0:00 /usr/lib/libgco
myusername 6528 0.0 0.0 3008 600 ? S 09:59 0:00 dbus-launch --ab427 --binary-syntax --close-stderr
myusername 6529 0.0 0.0 2568 868 ? Ss 09:59 0:00 /usr/bin/dbus-dress 7 --session
myusername 6534 0.0 0.0 2796 752 ? S 09:59 0:00 gnome-pty-helpe
myusername 6535 0.0 0.1 5708 3120 pts/0 Ss+ 09:59 0:00 /bin/bash
root 6552 0.0 0.1 11384 3840 ? Ss 10:01 0:00 sshd: myusername [p
myusername 6554 0.0 0.0 11384 1872 ? R 10:01 0:00 sshd: myusername@pt
myusername 6555 0.0 0.1 5720 3152 pts/1 Ss 10:01 0:00 -bash
myusername 6578 0.0 0.0 2644 1012 pts/1 R+ 10:04 0:00 ps auxww
myusername 6579 0.0 0.0 3008 776 pts/1 S+ 10:04 0:00 grep myusername
anything look strange?
Definitely sounds like your
Definitely sounds like your xstartup is broken somehow. There should be processes from whatever desktop environment or programs you're trying to run. You can start with simple steps by running just
/usr/bin/xterm
, or try installing icewm and just use the xstartup file I have in the article.Fixed issue with gray screen at startup
I too was having an issue where the VNC server was getting started, but I saw only a gray screen when I connected to it from a remote client. After some investigation, I realized the the VNC server was being started too early in the boot process, perhaps before the X windows subsystem had been completely initialized. I was able to solve this problem by removing the vncserver script from the startup sequence using:
sudo update-rc.d -f vncserver remove
and then adding it back using:
sudo update-rc.d vncserver defaults 99
The value of "99" indicates that this script should be run later in the startup process. Other values may work for you, but the value that was being used in my case by default was 20, and that caused it to be run too early.
Andrew - You may want to add a note about this in the original writeup. And thanks, by the way, for writing this up - it got me 95% of the way there.
This is likely related to the
This is likely related to the fact that in the time since I wrote the article for Ubuntu 8.04, there's a lot of work that's gone into making startup tasks run in parallel. Thanks for the tip, I've updated the article.
Thank you!
Thank you for this! I've been looking for a seemless way to start X and VNC all in one. Maybe you should add a part about changing the username from "mythtv" to something else, but I guess everyone can figure it out. Tested working 100% as the guide said it on Ubuntu 8.10 x86_64.
Added note about changing the user
Glad to hear that the steps still work as expected on 8.10, as I haven't upgraded from 8.04 yet. I've updated the article with a note about changing the USER variable to something valid.
/etc/init.d/vncserver "No such file"
It's very strange. Followed guide, but got stuck here:
sudo cat /etc/init.d/vncserver
works. However:sudo /etc/init.d/vncserver start
results in :any thoughts?
Finally Working! Thank god (and andrew)
re-did it from scratch. this by typing in on the terminal (before i did cut&paste from windows using vnc). I think this has something to do with the involvement of Windows somewhere in the process.
Anyway - after so 3 days of frustration it finally works!
Thank you!
Glad to hear you got it
Glad to hear you got it working. My guess is that Windows line endings got placed in the file somehow. I've had better success with such things by using SSH + putty, if you're stuck on Windows.
thanks
have been trying (unsuccessfully) to get this to work exactly as you did for a long time — thanks for the vncserver init.d script
awesome (;
Everytime I use the script, I got a prompt asking for password
if I input the password, the script runs well.
But when this script automatically run on boot, I do not get a chance for inputting password.
So the vncserver will not get started.
Can you tell me how can I prevent the password being asked when using the script?
Thank you in advance.
Do you have a password set
Do you have a password set for the user? You can change it with vncpasswd, and check that it exists by looking in ~/.vnc/passwd. vncserver should only ask for a password if one doesn't exist.
Or, is your startup script running the vnc server as the same user that you set up? Perhaps it's trying to run as root or some other user.
xstartup not being launched
I too am having a problem with xstartup not being launched. Not sure what to do.
Has Anyone Solved the xstartup issue
Whats the problem with the xstartup file not being read/executed on startup? When I start vncserver manually it works just fine, but when I log in with just the startup scripts the server is started, but gnome isn't.
If you DO get an X-server
If you DO get an X-server (gray with the old style mous-pointer) you might want to adding the following (for gnome) to the top of your xstartup file:
unset SESSION_MANAGER
exec sh /etc/X11/xinit/xinitrc
However, I (as well as others) am experiencing theme-switching. The theme-chooser will very shortly change the theme, but when I stop using the chooser itself it refers back to the default icon/theme appearance. Anyone got an idea/link?
How could I modify this
How could I modify this script for five users each running there own vnc window?
Is this possible?
For five users, it's probably
For five users, it's probably easiest just to copy the init.d script for each user, and modify the USER variable. Or, for a little more robustness, turn that variable into a list of users sourced from a configuration file, and loop over each user for the start and stop actions.
So copy the init.d script
So copy the init.d script just change the User,display and script name for each user.
I cannot get this to work on
I cannot get this to work on ubuntu 8.10 it works fine on 9.04.
First of all the 8.10 asked for the required-stop section from the init info so I created that section.
# Required-Stop: networking
I can start manually by "sudo /etc/init.d/vncserver start" but will not start automatically from boot.
Can anyone help?
That's rather strange. I'm
That's rather strange. I'm currently running 9.04, and I'm pretty sure that 8.10 loaded the session fine (though I only had 8.10 installed for a few hours). You're sure you ran
sudo update-rc.d vncserver defaults
? There should be symlinks in the following locations:/etc/rc0.d/K20vncserver
/etc/rc1.d/K20vncserver
/etc/rc2.d/S20vncserver
/etc/rc3.d/S20vncserver
/etc/rc4.d/S20vncserver
/etc/rc5.d/S20vncserver
/etc/rc6.d/K20vncserver
Yes on 8.10 I only have
Yes on 8.10 I only have symlinks in these locations
/etc/rc0.d/K20vncserver1 -> ../init.d/vncserver
/etc/rc1.d/K20vncserver1 -> ../init.d/vncserver
/etc/rc6.d/K20vncserver1 -> ../init.d/vncserver
/etc/rcS.d/S20vncserver1 -> ../init.d/vncserver
Well that's the problem.
Well that's the problem. Either create the symlinks manually, or re-run the update-rc.d command to create them.
/bin/sh: Illegal option -
Thanks for this write-up. I have followed all the steps but cannot get "sudo /etc/init.d/vncserver start" to work. It returns: "/bin/sh: Illegal option -". I am running Ubuntu 9.10. I have created the script twice but it does not solve the problem. Even if I reduce the script to e.g. only the first 5 lines, it returns the same error.
Manually (via command "/usr/bin/vncserver -name my-vnc-server -depth 24 -geometry 1280x1024 :1") I get it to work without problems and can connect. Any idea?
Thanks.
I wonder if 9.10's /bin/sh
I wonder if 9.10's /bin/sh has changed; perhaps it doesn't like the
-e
parameter. Try removing it, or changing/bin/sh
to/bin/bash
or/bin/dash
?I have tried the
I have tried the following:
1) Removing the -e parameter and "sudo /etc/init.d/vncserver start" returns: "/bin/sh: Can't open".
2) Changing to "/bin/bash -e" returns "/bin/bash: Illegal option -"
3) Changing to "/bin/bash" returns ": file or folder does not exist"
4) Same for "/etc/dash -e" and "/etc/dash"
The only thing I can think of is that directory "/usr/X11R6/bin/" does not exist on my machine, nor does folder "X11R6" (in another location). I am still open for other ideas ;-)
Same Problem
I am having the same problem it sounds like. I am running 10.04 and this is what I get when I run the vncserver start command:
sudo /etc/init.d/vncserver start
* Starting vncserver for user 'shon' on localhost:1...
bash: -c: line 0: unexpected EOF while looking for matching `''
bash: -c: line 1: syntax error: unexpected end of file
Any suggestions?
Does the file have Windows
Does the file have Windows line endings instead of Unix line endings? From those errors it seems like the script file is corrupted somehow.
Thanks!
I was upset that it was so hard to run a headless machine with Ubuntu 9.10, but this procedure worked great for me!
Works! But...
This works perfectly, except that once Im into the desktop, it seems to think I have a German or french keyboard, instead of a british. any way to solve? under keybord, it says i have a british one, but it's not typing as one
wrong keyboard characters too...
I'v got the same problem like Dave...
This sounds like the bug you
This sounds like the bug you are running into:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476727
https://bugs.launchpad.net/ubuntu/+source/vino/+bug/112955/comments/55
http://dertompson.com/2010/02/09/tightvnc-messes-up-keyboard-layout-afte...
How do I connect to display :0
Excellent article. I did some small modification for my user name and screen resolution and everything is still working. I have one issue. how do I VNC into display "0" instead of "1"? The reason is to access programs which are already running on display "0". Display "0" has already been assigned to my session that I logged in on the server.
If I leave Thunderbird mail running on the server on display "0", I cannot see it on display "1" when I am accessing the server from remote desktop. I usually leave some programs running and just lock the screen.
Either use hostname:1, where
Either use hostname:1, where 1 is the display number, or hostname:5901, where 5901 is the port. By default, :1 automatically maps to 5901, and increments up.
Where to use hostname:1 ? on
Where to use hostname:1 ?
on client or on server as an option while starting vncserver hostname:1
That's the syntax for
That's the syntax for connecting from a client. For example, when I want to connect from TightVNC to VNC running on the server blizzard on display 1, I would put
blizzard:1
in the hostname field.No /etc/init.d/vncserver file or directory...
This looks exactly like what I am looking for. I need to run a headless machine that I can setup 2-3 remote users to login with their own accounts. So I need to start VNC on a restart and not have to log in as each one and start the service manually.
I am trying this but when I run sudo cat> /etc/init.d/vncserver I get the error "cat: /etc/init.d/vncserver: No such file or directory"
Any ideas on what this could be? I am running Ubuntu 10.04.
Also is there a way to modify this to allow different VNC servers to run for different users on different ports?
Thanks for your input!
You should be able to modify
You should be able to modify the script easily, either by having one script for each user, or adding in some additional code to handle your case with a few loops.
When you do
sudo > /path/to/file
, only the command, and not the shell redirection, is run as root. Try doingsudo -i
and then the cat, or just dosudo vim
and paste in the code.Edit: Which makes me wonder why it worked when I first wrote the article! I've updated the article to use a functional method.
Just what I needed
Thanks a lot for this init script! It's just what I needed for my dedicated OpenVZ torrenting container. You've allowed me to put off learning more about bash scripting a little longer.
Tightvnc Server crash
Hi!
I installed VNC as in this tutorial described! Thank you very much it works great!
As desktop environment I installed the package "gnome-core". It works fine until a certain moment when the connection is used over serveral days (also using KDE programs). Then suddenly the server crashes and I have to delete some temporary files from /tmp: ".X101-lock" and ".X11-unix". then the server has to be restarted. Is this a known problem ? Has anyone got an idea how to fix this? Does the vnc process have too little memory assigned?
Thank you very much for any help!
Accidently gave vnc user root priveleges
Fresh install of Ubuntu 10.04 - first thing I did was install tightvncserver as above (great piece, thank you).
Logging in with TightVNC I was surprised to see the user was "root". Scared the crap out of me.
Best guess is the first time I ran the script (that creates the .vnc directory and password file) I must have typed "sudo".
Reasoning: ownership of ~/.vnc and ~/.Xauthority was root:root.
Fixed it by changing the permissions of ~/.vnc and ~/.vnc/passwd, deleting the .Xauthority files, deleting the ~/.vnc/server:1.log and server:1.pid files; stopped the service, then reran the startup script.
Still confused on the difference between running "/etc/init.d/vncserver start" and simply "vncserver".
Thank you.
Thanks
Worked like a charm on Lucid Lynx (Ubuntu 10.04)
Thanks!
Everything mentioned here
Everything mentioned here also works on Ubuntu 10.04.
Knowing little about bash scripting I got my set up with multiple VNC servers for multiple users working by using
the last script on the page here .
with just one small change. Changed /bin/sh to /bin/bash. This is because in ubuntu the default shell is not bash
thus requiring you to be expllicit.
Edit: Broken link fixed.
Thank You
Worked like a charm. Thank you very much it works great!
Black Screen after reboot for VNC connection
I have set this up and after rebooting I try to connection via VNC and end up with a black screen... :|
Any thoughts?
My guess would be that the
My guess would be that the VNC session is started, but no programs are actually running. If you know the display number (often :10) you can try manually running a program and it should show up in that session:
$ export DISPLAY=:10
$ xterm
Also consider checking with
ps auxww
to see if your expected programs are running.Don't bother
I wanted an easy solution to remote into my ubuntu 10.04 box on the lan before any login.
Well, if you want to do this and not have to think about it do the following:
Step 1). Go to the following site depending on your bit version of ubuntu:
For the server (computer you want to connect to) you need client, node, and server installed but for the client you only need the client.
For 32 Bit: http://www.nomachine.com/download-package.php?Prod_Id=2249
For 64 Bit: http://www.nomachine.com/download-package.php?Prod_Id=2247
So for the server install the client, then the node, and then server deb; on ubuntu this should be just a download and it will take it from there.
Step 2). Test locally via the menu [Applications][Other][NX Client]
Provide any session name, your user name, and pasword - I believe you can also connect to an existing session (have not tried this yet) , Note: you may get a prompt but it will ask if you wish to connect anyway and say yet - this is just a test.
Step 3). Close everything up and reboot and go to another computer on the LAN or with access to the IP.
Step 4). Install the NX client from the appropriate links above.
Step 5). Start the client using the same steps above and enter the same information but change the IP from 127.0.0.1 to what ever IP you have.
For me this is all I did and I have 10.04 on both. It works no problem.
Thanks NX!
Long live Ubuntu!.
X-Authorisation File
I have setup VNC Server as per the instructions above. I have not been able to run the script file at startup and I am using cron to start/stop. The VNC client is working now. However a number of admin tasks do not work as the "X-Authorisation" file cannot be found. Can this path be added to any of the setup files or is there a simple solution?
Crashing
https://bugs.launchpad.net/ubuntu/+bug/344264
Xtightvnc version 1.3.9 will crash when handling some 64bit values. 1.3.9 is the version in the Ubuntu repositories as of 1/14/2010.
This is supposedly fixed in 1.3.10, however installing that requires downloading/compiling source.
Unable to get it started
jdube@Falken:/usr/bin$ sudo /etc/init.d/vncserver start
* Starting vncserver for user 'jdube' on localhost:1...
Couldn't start Xtightvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xtightvnc process.
Unrecognized option: --
use: X [:] [option]
suggestions?
Good grief!
This torturous, scatter-shot configuration drama - not uncommon, it seems - is not a recommendation.
Too right!
Let's see… in OS X all I have to do is select the server I want from the Shared area of the Finder window (for local-network systems), click the 'Share Screen' button and enter my login credentials. Works first time, every time in my experience.
This kind of arcane masochism is why I left Linux as a day-to-day desktop after 10+ years of use and evangelism. If your time and sanity are worth anything at all to you, you start looking for ways to make the tools you use to do your work get out of the way as much as possible so you can accomplish the mission you set out to. Digging coal to fire a furnace on which you forge blades with which to shave your yak is the historically pandemic Linux experience, and that's why proportionally fewer people are using it as a desktop system now than 5 years ago, and fewer still will be in 5 years' time unless Ubuntu and friends get out of their navels and start innovating again. When anyone asks me about putting a Linux desktop on an existing PC, I recommend openSUSE, Fedora and Mint. It's been two years since anybody asked me about Ubuntu… and getting people off Windows was my bread-and-butter business until very recently.
Get Grey screen with x only
I followed the article on Ubunto 10.04 LTS. Went fine but when I connect using RealVNC viewer to my device I get a grey screen with an x that moves with the mouse. Anu ideas what causes this?
# Default-Start: S ? (S as in Sam?)
Shouldn't it be 5 as in, well, five?
I looked into this, and while
I looked into this, and while "S" isn't really wrong, it's not the best either. "S" means to run the script any time before switching run levels. What we really want is for it to run after base services have been started. I've changed the script to default start at levels 3 4 5, which should work fine. Thanks!
Deserves an MVP: Most Valuable Post!
Even though your original post is nearly three years old, it's still the clearest - and most successful - description of how to configure a vncserver anywhere on the net. And the various problem descriptions, along with the responses and advice on how to correct, are still enormously useful.
Of course, I might just feel this way because I just spent the whole bleeding day trying to get TightVNC on Ubuntu and Windows to cooperate with one another. It was this post that got me through it!!
Thanks!!
running tightvnc server on display:0
hello all i am trying to run the tightvnc or real vnc on display/ terminal:0 can anybody tell me how to run
by default is is running on display:1 ever passing the value display:0
thanks in advance
If you're just wanting to run
If you're just wanting to run it on port 5900, you can change the DISPLAY variable to 0. However, if you want to attach to an existing X11 server (instead of spawning a separate desktop), you can use the built-in Gnome VNC server (vino-server) or the highly-configurable and quite excellent x11vnc.
I needed to replace
I needed to replace
icewm-session &
with
startxfce4
to get XFCE4 running under Ubuntu 10.04
Great tutorial - thanks
Thanks
Works like a charm on Ubuntu server 11.10
Here is an update for this
Here is an update for this article that helped me out on Ubuntu 11.04: http://zatansuibi.blogspot.com/2011/06/vnc-set-up-in-ubuntu.html
Andrew, you're a god! I spent
Andrew, you're a god! I spent over a day wasting time reading and reading and reading, and experimenting. Just like the previous Anonymous said, so many permutations of useless info...then this. Thank you, I can finally put my server online and get some sleep! My fiancee and child owe you a thanks...
Still Works
Used this guide to setup automatic run for 2 users on Maverick. I didn't need to fix anything. I simple copy and pasted from the guide to an ssh session on a remote desktop, fixed the user name & screen number. Saved and fixed the permissions. It started without issue, and installed for run at boot without complaint.
Fantastic guilde and still very usable.
Really nice, Thanks for this
Really nice, Thanks for this
Start a VNC Server on Ubuntu on Boot
I was getting an error after doing
sudo update-rc.d vncserver defaults
So I changed /etc/init.d/vncserver to as the error was suggesting
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
I was not able to start it without rebooting with
sudo /etc/init.d/vncserver start
However I decided to just reboot and its working just fine.
Thanks for the information.
Clipboard from client not working
The solution is great! I use ubuntu 11.10 and finally don't need to login locally to X everytime I boot my server to enable vnc. I don't know how come the developers don't allow users to at least choose to run vnc server on boot and not after logging in. For headless servers it is so normal. And Microsoft remote desktop does just that without complaining... This is so lame...
Anyway, thanks for the article. I just bumped into one problem. I noticed that by default my clipboard (windows 7) is not shared with the server. I googled a site advising to use autocutsel
http://thomas.patrickdepinguin.com/knowledgebase/tight-vnc
However, the recommended command line
autocutsel -s PRIMARY -fork
did work only one-way, i.e. from server to client.
When I changed the -s parameter to
autocutsel -s CLIPBOARD -fork
it worked perfectly both ways!
Was getting the help screen
Was getting the help screen until changed su to echo to see what was getting run.
Self inflicted stupidity, but need to escape quote the name if you have spaces in $NAME:
OPTIONS="-name\"${NAME}\" -depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
Similar advice for RedHat and Suse
Andrew,
Thanks for these useful instructions which seem to work find for Debian/Ubuntu, but they need a little bit of tweaking to work with RedHar or Ubuntu (see my blog post http://www.brianodonovan.ie/2011/11/automatically-starting-vnc-server-at... for details)
Brian
Thanks a lot
I do not know how many hours I saved following your instructions. You wrote really a great post.
Thanks again.
Useful!
Thanks, this helped get me going me when vino started crashing in Ubuntu 11.10
One thing - there is a typo
sudo -i && cat > /etc/init.d/vncserve && exit
should be
sudo -i && cat > /etc/init.d/vncserver && exit
Thanks for catching that -
Thanks for catching that - impressive on a 3 and a half year old article!
Great, but ...
Thank you, I'm up and running on Ubuntu 11.10 32-bit.
Two problems - first is this bug where the letter 'd' closes all open windows -https://bugs.launchpad.net/ubuntu/+source/vnc4/+bug/658723, but you can fix this by going into System Settings --> Keyboard --> Shortcuts --> Hide all normal windows*
Change this to SHIFT-ALT-D, or whatever.
Second problem still unsolved is that the icons in Unity are not displaying properly, some do, some don't. For example if I open up 'Network Connections' my wired LAN does appear. Another example is the Terminal icon on the Unity bar - I can click on it but it is just an empty black icon.
Anyone know how to fix this?
Cheers
:)
Excellent Guide, it took several tries - once I removed the port from TightVNC it worked after rebooting.
Now I can use my third monitor again for development or VNC depending on my task - thanks :)
Awesome
Worked great! Thank you.
When I run vncserver I get an
When I run vncserver I get an error that says:
vncpasswd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
Do you know how to fix this?
Don't bother
Wasted hours on this, doesn't work.
yep. doesn't work.
yep. doesn't work.
Ubuntu 11.10 - gave up after 2 weeks.
I hope this might be of help.
My solution:
1 - Go to the desktop sharing and allow it to sharing and put a good password.
(click off to allow permissions)
2 - Go to the Screen and set it to lock after 30 seconds.
3 - Go to users and allow an automatic login.
The vino server starts and you should be able to attach to it. You can use ssh to create a tunnel for VNC if you need to secure it (I used PUTTY and that worked very well). You can also enable the firewall and just allow traffic from a specific address. This solution has worked for me in over 20 Ubuntu boxes.
Get error starting vnc server
I followed all the direction till I got to the command on line 6. When I ran that it did not like the NAME=”vicbitter” so I changed it to NAME=”giles” so I tried NAME=”giles@vicbitter” each time I got the following error.
"/etc/init.d/vncserver: 30: ”giles@vicbitter”: not found" . The vncserver that started was a local one at Starting applications specified in /home/giles/.vnc/xstartup
Log file is /home/giles/.vnc/vicbitter:1.log
Any help appresiated
Get error starting vnc server
Just like to add to the above that the vnc server does not start on reboot either??
Only getting a black screen with X pointer
Hey guys i followed these steps but all i get is a Black screen with a X shaped pointer that can be moved by mouse :/
Any solutions ?
Debian 6.0
Your article is great ! Thank you !
For those who might to try this under Debian 6.0 Squeeze some rework of the script is needed :
change the header to look like this
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
Do not use update-rc.d but insserv
Thank you
Thank you, Thank you, Thank you
Authentication Issues
It all seems to work, but when I try and use Synaptic (as an example) it doesn't load the auth prompt, presumably it's trying with a text prompt (it does when I run synaptic-pkexec from the terminal)
I'm guessing that this is a security feature to prevent su from dropping to whoever, but is there a way around this? or am I doing something wrong?
starting thightvncserver in Raspberry PI Debian zqueeze.
I didn't have to do all those steps exposed in this headlines,
What it did the job for me was:
sudo nano /etc/rc.local
And add this line somewhere in the middle or beginning:
su -c "/usr/bin/tightvncserver -geometry 1280x1024" username
Before I had included other options/parameters in that line and I was getting black icons on the screen, but with only -geometry option did the trick and it work great!
still having a useless grey vnc client !!!!
I tried to follow these instructions in order to configure "Ultravnc viewer" on a wondows vista system (with an intel integrated graphics card with 32bits color/ 1280x800 / 59HTZ) in order to manage an ubuntu 10.04 64bits system (the desktop amd64 bits install from the main ubuntu repository).
went through all the steps but I still have a grey screen on ultravnc viewer which blocks me from using the tool??
tried to install other tools (clients) such as VNC viewer and tightvnc viewer ,but they all end up with a grey interface!!!
I tried different settings " geometry 800x600/1280x1024/1024x768" ,but still stuck with this grey screen!!
Any suggestions please??